Method, system, host and storage medium for realizing startup animation of vehicle host

By removing the native startup animation process and creating a new process, it supports simultaneous playback of multiple video formats and audios, solving the problems of long startup animation playback time and high resource consumption of traditional vehicle hosts, and achieving faster startup animation playback and resource consumption. save.

CN115589503BActive Publication Date: 2024-10-18HUIZHOU DESAY SV AUTOMOTIVE
View PDF 3 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

The startup animation playback method of traditional vehicle head units has a single function, poor fluency, and high resource consumption of ROM and RAM, resulting in a long startup time and unable to meet the high requirements of car manufacturers and end users for startup animation performance.

Method used

By removing the native startup animation process, creating a new startup animation process, using the fork() function of the init process to create a child process, supporting the playback of multiple video formats, and synchronizing video and audio, reducing resource file size. Save ROM and RAM.

Benefits of technology

It speeds up the playback time of the on-board host's startup animation, supports simultaneous playback of multiple video formats and audios, reduces resource consumption, and improves fluency and animation effects.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115589503B_ABST
    Figure CN115589503B_ABST
Patent Text Reader

Abstract

The present invention provides a method, system, host and storage medium for realizing the startup animation of a vehicle-mounted host. The method comprises: annotating a resource file to remove the native startup animation process, then calling the main() function of the init process in the system directory, and calling the fork() function at the start stage of the main() function to create a child process of the init process as a new startup animation process, and then playing the startup animation of the video according to the new startup animation process, or playing the video and audio synchronously. The present invention can speed up the playback time of the startup animation of the vehicle-mounted host, and support the playback of video files in various formats, and also support the synchronous playback of video and audio. Compared with the traditional startup animation solution, the size of the resource file can be compressed, saving the use of ROM and RAM.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of vehicle-mounted multimedia, and in particular to a method, system, host and storage medium for realizing a vehicle-mounted host startup animation. Background Art

[0002] With the development of science and technology, the functions of vehicle multimedia hosts are becoming more and more abundant, and car manufacturers and end users have higher and higher performance requirements for vehicle computers. The boot animation display time and the overall boot time are two key performance indicators in the boot process. The traditional boot animation implementation method has become increasingly unable to meet the requirements of car manufacturers and end users for boot animation performance; car manufacturers and end users have increasingly higher requirements for the content and smoothness of the boot animation, and the traditional boot animation playback method has shortcomings such as single function, poor smoothness and high storage resource consumption, and is increasingly unable to meet the requirements.

[0003] For most traditional car head units, the boot animation is mainly realized by looping a number of PNG format images through the native bootanimation service. Bootanimation itself does not support the playback of video format data such as AVI, and can only display images frame by frame. Compared with directly playing the video to display the boot animation, the display of images is less smooth and the animation effect is less. On the other hand, although bootanimation loads compressed image materials, it has higher requirements for ROM and RAM than video format materials.

[0004] Limited by the startup process, the traditional car host starts the boot animation relatively late. Bootanimation belongs to the service of the Framework layer. The startup of this service depends on the startup of other modules, such as surfaceflinger and HWComposer. Bootanimation can only be started after the surfaceflinger service is started. It usually takes 4-5s from the host power-on to the bootanimation startup. Some platforms may take 6-7S, which is unacceptable to some car manufacturers and actual users. Summary of the invention

[0005] In order to solve the above technical problems, the present invention provides a method, system, host and storage medium for realizing the startup animation of a vehicle host; the startup animation is played by removing the original startup animation process and creating a new startup animation process. The present invention can speed up the playback time of the startup animation of the vehicle host, support the playback of video files in various formats, and also support the synchronous playback of video and audio. Compared with the traditional startup animation solution, the size of the resource file can be compressed, saving the use of ROM and RAM.

[0006] Specifically, the present invention provides a method for realizing a vehicle-mounted host startup animation, comprising the following steps:

[0007] S100: Removed the native boot animation process.

[0008] S200: Create a new boot animation process by calling the fork() function through the init process.

[0009] S300: When the vehicle-mounted host is powered on, the boot animation is played through the new boot animation process.

[0010] The step S100 specifically includes: removing the native boot animation process in the vehicle host by annotating the resource file.

[0011] The step S200 is specifically as follows: by calling the main() function of the init process in the system directory, and calling the fork() function at the start stage of the main() function to create a child process of the init process as a new boot animation process.

[0012] The step S300 specifically includes:

[0013] S301: When the vehicle-mounted host is powered on, the new boot animation process is started.

[0014] S302: Turn on the display module and create a frame buffer using the display module framework.

[0015] S303: Complete the initialization of the display module and load the video.

[0016] S304: Decapsulate and decode the video to complete the playback of the startup animation of the video.

[0017] Wherein, the step S300 also includes another method, specifically including:

[0018] S311: When the vehicle-mounted host is powered on, the new boot animation process is started.

[0019] S312: Turn on the display module and create a frame buffer using the display module framework.

[0020] S313: Complete the initialization of the display module and load the video and audio at the same time.

[0021] S314: Decapsulate, decode and synchronize the video and audio respectively, and play the video and audio synchronously.

[0022] Furthermore, the step S300 also includes: after the current boot animation is played, releasing the video resources and audio resources in the current boot animation process, and exiting the sub-process.

[0023] As another preferred embodiment, the present invention also provides a vehicle-mounted host startup animation system, including: a creation module: used to remove the native startup animation process by annotating resource files, and to create a new startup animation process by calling the fork() function through the init process; an initialization module: used to complete the initialization of the display module by creating a frame buffer; a loading module: used to load video and audio; a multimedia processing module: used to complete the decapsulation, decoding, synchronization and playback of the video and audio; the display module: used to play the video startup animation according to the new startup animation process, or play the video and audio synchronously.

[0024] The system further includes: a resource release module: used to release the video resources and audio resources in the current boot animation process whenever the current boot animation is played; a confirmation exit module: used to confirm that the boot animation file is played and exit the sub-process.

[0025] As another preferred embodiment, the present invention further provides a host, on which a vehicle-mounted host startup animation system is installed, and the system is used to implement the above-mentioned vehicle-mounted host startup animation implementation method.

[0026] As another preferred embodiment, the present invention further provides a storage medium which is a computer-readable storage medium on which a computer program is stored, characterized in that when the program is executed by a processor, the above-mentioned vehicle host startup animation implementation method is implemented.

[0027] In conclusion, the present invention provides a method, system, host and storage medium for realizing the startup animation of a vehicle-mounted host. The method includes: annotating the resource file to remove the native startup animation process, and then calling the main() function of the init process in the system directory, and calling the fork() function at the start stage of the main() function to create a child process of the init process as a new startup animation process, and then playing the video startup animation according to the new startup animation process, or playing the video and audio synchronously. The present invention can speed up the playback time of the startup animation of the vehicle-mounted host, and supports the playback of video files in various formats, and also supports the synchronous playback of video and audio. Compared with the traditional startup animation solution, it can compress the size of the resource file and save the use of ROM and RAM. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] Figure 1 Flowchart of the method for implementing the startup animation of the vehicle host.

[0029] Figure 2This is a flow chart of the method for realizing boot animation playback.

[0030] Figure 3 A flow chart of another method for realizing boot animation playback.

[0031] Figure 4 This is the framework diagram of the vehicle host startup animation system.

[0032] Figure 5 The figure is a timing diagram of the boot animation playback according to an embodiment. DETAILED DESCRIPTION

[0033] The following is a further detailed description of a vehicle-mounted host startup animation implementation method, system, host and storage medium of the present invention in conjunction with specific embodiments and drawings.

[0034] like Figure 1 As shown, the present invention provides a method for realizing a startup animation of a vehicle-mounted host, comprising the following steps:

[0035] S100: Removed the native boot animation process.

[0036] The step S100 specifically includes: removing the native boot animation process in the vehicle host by annotating the resource file.

[0037] Preferably, comment the bootanim.rc file to remove the startup of the native boot animation bootanimation service.

[0038] S200: Create a new boot animation process by calling the fork() function through the init process.

[0039] The step S200 specifically includes: calling the main() function of the init process in the system directory, and calling the fork() function at the start stage of the main() function to create a child process of the init process as a new boot animation process.

[0040] Preferably, a child thread can be created after the basic file system mounting and dependent component initialization are completed. The child process is created by calling the fork() function at the start stage of the main() function of / system / core / init / init.cpp, and the child process is named bootanimation process.

[0041] S300: When the vehicle-mounted host is powered on, the boot animation is played through the new boot animation process.

[0042] Preferably, the entire process of playing the boot animation is completed by the bootanimation process.

[0043] Among them, Figure 2 As shown, the step S300 specifically includes:

[0044] S301: When the vehicle-mounted host is powered on, the new boot animation process is started.

[0045] S302: Turn on the display module and create a frame buffer using the display module framework.

[0046] S303: Complete the initialization of the display module and load the video.

[0047] S304: Decapsulate and decode the video to complete the playback of the startup animation of the video.

[0048] like Figure 3 As shown, the step S300 also includes another method, specifically comprising:

[0049] S311: When the vehicle-mounted host is powered on, the new boot animation process is started.

[0050] S312: Turn on the display module and create a frame buffer using the display module framework.

[0051] S313: Complete the initialization of the display module and load the video and audio at the same time.

[0052] Preferably, the video supports multiple formats, which may be MP4, RMVB or AVI; the audio exists in an independent ROM partition.

[0053] S314: Decapsulate, decode and synchronize the video and audio respectively, and play the video and audio synchronously.

[0054] Preferably, the frame buffer is created using a corresponding layer according to actual hardware resources, an independent hardware layer, or sharing a layer with the HMI.

[0055] Furthermore, the step S300 also includes: after the current boot animation is played, releasing the video resources and audio resources in the current boot animation process, and exiting the sub-process.

[0056] As another preferred embodiment, Figure 4As shown, the present invention also provides a vehicle-mounted host startup animation system, including: a creation module: used to remove the native startup animation process by annotating the resource file, and to create a new startup animation process by calling the fork() function through the init process; an initialization module: used to complete the initialization of the display module by creating a frame buffer; a loading module: used to load video and audio; a multimedia processing module: used to complete the decapsulation, decoding, synchronization and playback of the video and audio; the display module: used to play the video startup animation according to the new startup animation process, or play the video and audio synchronously.

[0057] The system further includes: a resource release module: used to release the video resources and audio resources in the current boot animation process whenever the current boot animation is played; a confirmation exit module: used to confirm that the boot animation file is played and exit the sub-process.

[0058] As another preferred embodiment, Figure 5 As shown, it is a boot animation playback timing diagram. Specifically, call the bootanimation_start() function to start a new boot animation process; then call the drm_ctrl_open() function to turn on the display module, and after the display module is turned on, create a frame buffer through the framebuffer_create() function to complete the initialization of the display module; transfer to the system loading module, and obtain the video and audio from the ROM partition at the same time through the get_video_from_rom() function; then transfer to the multimedia processing module, call the demuxing_data() function to decapsulate the video and audio, and then call the decode_video() function and decode_audio() function to decode the video and audio respectively, and complete the synchronization of the video and audio according to the audio_video_synchronization() function, and then complete the synchronous playback of the video and audio through the play_video() function and play_audio() function; further, transfer to the resource release module, and release the video resources and audio resources in the current boot animation process according to the release_audio_video_resource() function; finally, transfer to the confirmation exit module, and exit the subprocess through the bootanimation_exit() function.

[0059] As another preferred embodiment, the present invention further provides a host, on which a vehicle-mounted host startup animation system is installed, and the system is used to implement the above-mentioned vehicle-mounted host startup animation implementation method.

[0060] As another preferred embodiment, the present invention further provides a storage medium which is a computer-readable storage medium on which a computer program is stored, characterized in that when the program is executed by a processor, the above-mentioned vehicle host startup animation implementation method is implemented.

[0061] In conclusion, the present invention provides a method, system, host and storage medium for realizing the startup animation of a vehicle-mounted host, the method comprising: annotating a resource file to remove the native startup animation process, then calling the fork() function through the init process to create a child process of the init process as a new startup animation process, and then realizing the startup animation playback according to the new startup animation process. The present invention can speed up the playback time of the startup animation of the vehicle-mounted host, and supports the playback of video files in various formats, and also supports the synchronous playback of video and audio.

[0062] Although example embodiments have been described herein with reference to the accompanying drawings, it should be understood that the above example embodiments are merely exemplary and are not intended to limit the scope of the present invention thereto. Various changes and modifications may be made therein by one of ordinary skill in the art without departing from the scope and spirit of the present invention. All such changes and modifications are intended to be included within the scope of the present invention as required by the appended claims.

[0063] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0064] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of the units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed.

[0065] The various component embodiments of the present invention can be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. It should be understood by those skilled in the art that a microprocessor or digital signal processor (DSP) can be used in practice to implement some or all of the functions of some modules according to embodiments of the present invention. The present invention can also be implemented as a device program (e.g., a computer program and a computer program product) for executing part or all of the methods described herein. Such a program implementing the present invention can be stored on a computer-readable medium, or can have the form of one or more signals. Such a signal can be downloaded from an Internet website, or provided on a carrier signal, or provided in any other form.

[0066] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0067] Although the present invention is described in conjunction with the above specific embodiments, it is obvious that those skilled in the art can make many substitutions, modifications and changes according to the above content. Therefore, all such substitutions, improvements and changes are included in the spirit and scope of the appended claims.

Claims

1. A method for realizing the startup animation of a vehicle host. It is characterized in that The following steps are involved: S100: Removed the native boot animation process; S200: Create a new boot animation process by calling the fork() function through the init process; The S200 specifically includes: calling the main() function of the init process in the system directory, and calling the fork() function at the start stage of the main() function to create a child process of the init process as a new boot animation process; S300: When the vehicle-mounted host is powered on, the boot animation is played through the new boot animation process; Wherein, the S300 specifically includes: S301: When the vehicle-mounted host is powered on, the new boot animation process is started; S302: Turn on the display module and create a frame buffer using the display module framework; S303: completing the initialization of the display module and loading the video; S304: decapsulate and decode the video to complete the playback of the startup animation of the video; Or the step S300 specifically includes: S311: When the vehicle-mounted host is powered on, starting the new boot animation process; S312: Turn on the display module and create a frame buffer using the display module framework; S313: completing the initialization of the display module and loading the video and audio at the same time; S314: Decapsulate, decode and synchronize the video and audio respectively, and play the video and audio synchronously.

2. The method for realizing the startup animation of the vehicle host according to claim 1, It is characterized in that The step S100 specifically includes: removing the native startup animation process in the vehicle host by annotating the resource file.

3. The method for realizing the startup animation of the vehicle host according to claim 1, It is characterized in that The step S300 also includes: after the current boot animation is played, releasing the video resources and audio resources in the current boot animation process, and exiting the sub-process.

4. A system using the method for realizing the startup animation of a vehicle host as claimed in any one of claims 1 to 3, It is characterized in that include: Creation module: used to remove the native boot animation process by annotating the resource file, and to create a new boot animation process by calling the fork() function through the init process; Initialization module: used to complete the initialization of the display module by creating a frame buffer; Loading module: used to load video and audio; Multimedia processing module: used to complete the decapsulation, decoding, synchronization and playback of the video and audio; The display module is used to play the video boot animation or the video and audio synchronously according to the new boot animation process.

5. The system according to claim 4, It is characterized in that The system further comprises: Resource release module: used to release the video and audio resources in the current boot animation process after the current boot animation is played; Confirm exit module: used to confirm that the boot animation file has been played and exit the subprocess.

6. A host computer, It is characterized in that A vehicle-mounted host startup animation system is installed on the host, and the system is used to implement the vehicle-mounted host startup animation implementation method as described in any one of claims 1-3.

7. A storage medium, which is a computer-readable storage medium, on which a computer program is stored. It is characterized in that When the program is executed by the processor, the vehicle host startup animation realization method as described in any one of claims 1-3 is implemented.

Citation Information

Patent Citations

  • Playing method and device of starting-up animation of vehicle-mounted terminal, equipment and storage medium

    CN108595215A

  • Method and device for recording startup abnormity information, storage medium and terminal

    CN109522147A

  • A display method and device for boot animations

    CN109710352A