CN116302247A - Vehicle control method, vehicle, and computer-readable storage medium - Google Patents

Vehicle control method, vehicle, and computer-readable storage medium Download PDF

Info

Publication number
CN116302247A
CN116302247A CN202310078629.7A CN202310078629A CN116302247A CN 116302247 A CN116302247 A CN 116302247A CN 202310078629 A CN202310078629 A CN 202310078629A CN 116302247 A CN116302247 A CN 116302247A
Authority
CN
China
Prior art keywords
animation
resource package
parameters
vehicle
background
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
CN202310078629.7A
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.)
Zhaoqing Xiaopeng New Energy Investment Co Ltd
Original Assignee
Guangzhou Xiaopeng Motors 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 Guangzhou Xiaopeng Motors Technology Co Ltd filed Critical Guangzhou Xiaopeng Motors Technology Co Ltd
Priority to CN202310078629.7A priority Critical patent/CN116302247A/en
Publication of CN116302247A publication Critical patent/CN116302247A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T13/00Animation
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02TCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO TRANSPORTATION
    • Y02T10/00Road transport of goods or passengers
    • Y02T10/10Internal combustion engine [ICE] based vehicles
    • Y02T10/40Engine management systems

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • General Engineering & Computer Science (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The application discloses a vehicle control method, comprising the following steps: acquiring a startup animation resource package of a vehicle-mounted system; determining drawing parameters and playing parameters of a starting animation resource; controlling the vehicle-mounted system to present a first segment resource package according to the drawing parameters and the playing parameters; and responding to the received exit signal of the startup animation, controlling the vehicle-mounted system to stop presenting the first fragment resource package, and presenting the second fragment resource package according to the drawing parameters and the playing parameters to form a background fade-out animation effect. According to the vehicle control method, drawing parameters and playing parameters in the boot animation resources can be determined in the obtained boot animation resource package of the vehicle-mounted system, the vehicle-mounted system is controlled to present a boot image with opaque background in the display part according to the parameters, and an animation effect with fade background is presented when the boot animation is exited, so that the problem of hard picture jump caused by lack of transition effect in the process of exiting the boot animation is solved, and the use experience of the vehicle-mounted multimedia equipment is improved.

Description

Vehicle control method, vehicle, and computer-readable storage medium
Technical Field
The present disclosure relates to the field of vehicle technologies, and in particular, to a vehicle control method, a vehicle, and a computer readable storage medium.
Background
Along with the development of vehicle intellectualization, the vehicle-mounted system can realize diversified human-computer interaction requirements and the like. In the related art, the boot animation of the vehicle-mounted system usually takes the non-transparent background color as the background color, and presents the desktop interface of the vehicle-mounted system immediately after the boot animation is finished, and the picture skipping process is relatively hard and the user experience is poor due to the lack of the picture transition effect.
Disclosure of Invention
The application provides a vehicle control method, a vehicle and a computer readable storage medium.
The vehicle control method of the present application includes:
acquiring a boot animation resource package of a vehicle-mounted system, wherein the boot animation resource package comprises a first segment resource package and a second segment resource package, the first segment resource package comprises multi-frame image resources with opaque background, and the second segment resource package comprises multi-frame image resources with incremental background transparency;
determining drawing parameters and playing parameters of the starting-up animation resources;
controlling the vehicle-mounted system to present the first segment resource package according to the drawing parameters and the playing parameters;
and responding to the received exit signal of the startup animation, controlling the vehicle-mounted system to stop presenting the first fragment resource package, and presenting the second fragment resource package according to the drawing parameters and the playing parameters to form a background fade-out animation effect.
Therefore, the method and the device can determine drawing parameters such as the size of a window to be drawn, the size of an image resource and the like in the boot animation resource, and play parameters such as the frame rate of a play image, the play times of a fragment and the like in the obtained boot animation resource package of the vehicle-mounted system, control the vehicle-mounted system to present the boot image with opaque background in the display part according to the drawing parameters and the play parameters, and control the boot image to carry out gradual change from opaque background to full transparent according to each parameter when receiving the exit signal of the boot animation, so as to present the fade-out animation effect. According to the vehicle control method, the image of the startup animation can be drawn through the preset parameters of the startup animation resource package in the vehicle-mounted system, and the animation effect of fading out the background is presented when the startup animation is exited, so that the problem that the image jumps hard due to lack of transition effect in the process of exiting the startup animation and entering the desktop of the system is solved, and the use experience of the current vehicle-mounted multimedia equipment is improved.
The obtaining the boot animation resource package of the vehicle-mounted system comprises the following steps:
creating a drawing thread;
and starting the drawing thread to acquire the starting animation resource package according to a preset storage path.
Thus, the drawing thread can be created and started, and the boot animation resource package is acquired under the preset storage path so as to determine the parameters of the boot animation resource and present the boot animation resource.
The determining the drawing parameters and the playing parameters of the starting-up animation resources comprises the following steps:
loading the starting-up animation resource package to obtain a description file;
and reading the description file to determine the drawing parameters and the playing parameters.
Therefore, the description file in the boot animation resource package can be obtained, and the drawing parameters and the playing parameters of the boot animation resource are determined so as to control the vehicle-mounted system to present the first segment resource package.
The controlling the vehicle-mounted system to present the first segment resource package according to the drawing parameter and the playing parameter includes:
creating a local window through the drawing thread;
setting the local window according to the drawing parameters;
and drawing the image resources in the first segment resource package in the local window according to the playing parameters in sequence to present the animation effect of the first segment resource package.
Therefore, the local window can be drawn, parameters of the local window can be set, and multi-frame images with opaque backgrounds in the image resource package can be sequentially played according to the playing parameters, so that the animation effect of the multi-frame images can be presented.
The setting the local window according to the drawing parameters includes:
and setting the size, pixel format and middle interface layer attribute of the local window according to the drawing parameters.
In this way, the size, pixel format, and intermediate interface layer properties of the local window can be set according to the rendering parameters, providing an area for rendering and rendering the animation resource package.
The drawing the image resources in the first segment resource package in the local window according to the playing parameters in order to present the animation effect of the first segment resource package includes:
setting a background transparency parameter value before drawing the image resource of the first segment resource package of each frame;
synthesizing each drawn frame image with a display background to obtain a first animation frame;
and presenting the first animation frame according to the playing parameter so as to present the animation effect of the first fragment resource package.
Therefore, the transparency of the background displayed by the local window can be set, the first animation frame synthesized by each frame of image and the local window is presented according to a certain playing parameter, and finally the animation effect of the multi-frame image with opaque background in the first segment resource package is presented.
And controlling the vehicle-mounted system to stop presenting the first segment resource package and present the second segment resource package according to the drawing parameters and the playing parameters to form a background fade-out animation effect in response to receiving an exit signal of the startup animation, wherein the method comprises the following steps:
and in response to receiving an exit signal of the startup animation, sequentially drawing multi-frame images of the second segment resource package on the local window according to the play parameters so as to present a background fade animation effect of the second segment resource package.
Therefore, the playing of the current image resource can be stopped after the received exit signal of the startup animation, and the multi-frame image resource with the background transparency increased in the image resource package is sequentially played according to the playing parameters, so that the animation effect of fading the background of the multi-frame image resource can be presented.
And drawing the multi-frame images of the second segment resource package in the local window in sequence according to the playing parameters so as to present the background fade animation effect of the second segment resource package, wherein the method comprises the following steps:
setting a background transparency parameter value before drawing an image of the second segment resource package of each frame;
synthesizing each drawn frame image with a display background to obtain a second animation frame;
and presenting the second animation frame according to the playing parameter so as to present the background fade animation effect of the second fragment resource package.
Therefore, the background transparency of the local window display can be set, the second animation frame obtained by combining each frame of image with the local window is presented according to a certain playing parameter, and finally, the background fade-out animation effect of the multi-frame images with the background transparency increased in the second segment resource package is presented, so that the use experience of the vehicle-mounted multimedia equipment is improved.
The creating a drawing thread includes:
creating an administrator oriented process;
creating a startup animation program process through the manager-oriented process;
and creating the drawing thread through the starting-up animation program process.
Therefore, the created manager-oriented process can be used for further creating a startup animation program process, and the drawing process is created through the startup animation program process so as to acquire a startup animation resource package, and finally, the animation effect of the image resource is presented.
The vehicle comprises a processor and a memory, wherein a computer program is stored in the memory, and the computer program realizes the vehicle control method when being executed by the processor.
The computer readable storage medium of the present application stores a computer program which, when executed by one or more processors, implements the method of vehicle control described above.
Additional aspects and advantages of embodiments of the application will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of embodiments of the application.
Drawings
The foregoing and/or additional aspects and advantages of the present application will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings, in which:
FIG. 1 is a schematic flow chart of a vehicle control method of the present application;
FIG. 2 is a flow chart of a vehicle control method of the present application;
FIG. 3 is a flow chart of a vehicle control method of the present application;
FIG. 4 is an effect schematic of the vehicle control method of the present application;
FIG. 5 is a flow chart of a vehicle control method of the present application;
FIG. 6 is a flow chart of a vehicle control method of the present application;
FIG. 7 is a flow chart of a vehicle control method of the present application;
FIG. 8 is a flow chart of a vehicle control method of the present application;
FIG. 9 is an effect schematic of the vehicle control method of the present application;
fig. 10 is a flow chart of the vehicle control method of the present application.
Detailed Description
Embodiments of the present application are described in detail below, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to like or similar elements or elements having like or similar functions throughout. The embodiments described below by referring to the drawings are exemplary only for explaining the embodiments of the present application and are not to be construed as limiting the embodiments of the present application.
Referring to fig. 1, the vehicle control method of the present application includes:
01: acquiring a startup animation resource package of a vehicle-mounted system;
02: determining drawing parameters and playing parameters of a starting animation resource;
03: controlling the vehicle-mounted system to present a first segment resource package according to the drawing parameters and the playing parameters;
04: and responding to the received exit signal of the startup animation, controlling the vehicle-mounted system to stop presenting the first fragment resource package, and presenting the second fragment resource package according to the drawing parameters and the playing parameters to form a background fade-out animation effect.
The application also provides a vehicle including a memory and a processor. The vehicle control method of the present application may be implemented by the vehicle of the present application. Specifically, the memory stores a computer program, the processor is used for acquiring a boot animation resource package of the vehicle-mounted system, determining drawing parameters and playing parameters of the boot animation resource, controlling the vehicle-mounted system to present a first segment resource package according to the drawing parameters and the playing parameters, and controlling the vehicle-mounted system to stop presenting the first segment resource package and present a second segment resource package according to the drawing parameters and the playing parameters to form a background fade-out animation effect in response to receiving an exit signal of the boot animation.
According to the vehicle control method, firstly, a startup animation resource package of a vehicle-mounted system is obtained, wherein the startup animation resource package comprises a first segment resource package and a second segment resource package, the first segment resource package comprises multi-frame image resources with opaque background, and the second segment resource package comprises multi-frame image resources with incremental background transparency. After the on-vehicle system on-vehicle animation resource package is obtained, drawing parameters and playing parameters of the on-vehicle animation can be confirmed, and the on-vehicle system is controlled to stop presenting multi-frame images with opaque background in the first segment resource package in response to the received on-vehicle animation exit signal, and multi-frame image resources with increasing background transparency in the second segment resource package are presented according to the drawing parameters and the playing parameters, so that an animation effect of fading out the on-vehicle animation background is finally formed. In the method, the gradual change effect of gradually changing the starting animation of the vehicle-mounted system from opaque multi-frame images to full-transparent multi-frame images is achieved by matching drawing parameters and playing parameters of the animation resource package.
Specifically, the boot animation resource package is located on a designated path in the vehicle-mounted system and can be named bootanimation-0.zip, wherein bootanimation is the name of the boot animation resource package; and 0 is displayID of the main screen and the auxiliary screen. After the boot animation resource package of the vehicle-mounted system is obtained, the drawing parameters and the playing parameters of the boot animation resources contained in the package can be determined by setting the interface and the parameters of an open graphics library OpenGL ES called by bootanimation. The rendering parameters may include the size of the window to be rendered, the image resources, etc. The playing parameters may include a playing image frame rate, a clip playing frequency, and the like.
Further, the vehicle-mounted system can be controlled to present multi-frame images with opaque background in a first segment resource package in the starting-up animation resource according to the drawing parameters and the playing parameters in the obtained starting-up animation resource package. When the exit signal of the startup animation is obtained, the exit signal of the startup animation can be responded, the presentation of the multi-frame image with opaque background in the first segment resource package is ended, the presentation of the multi-frame image resource with gradually increased background transparency in the second segment resource package is started according to the drawing parameters and the playing parameters, and finally, the animation effect of gradually fading out the background of the transition of the startup animation of the vehicle-mounted system from the opaque multi-frame image to the fully transparent multi-frame image can be formed, and the problem that the image lacks transition effect in the process of exiting the startup animation and entering the desktop interface of the vehicle-mounted system is solved.
In summary, the method and the device can determine drawing parameters such as the size of a window to be drawn and an image resource in the boot animation resource, and playing parameters such as the frame rate of a playing image and the playing times of fragments in the obtained boot animation resource package of the vehicle-mounted system, and control the vehicle-mounted system to present a boot image with opaque background in a display part according to the drawing parameters and the playing parameters. According to the vehicle control method, the preset parameters of the boot animation resource package in the vehicle-mounted system can be used for drawing the image of the boot animation, and the animation effect of fading out the background is presented when the boot animation is exited, so that the problem that the picture jumps hard due to lack of transition effect in the process of exiting the boot animation and entering the desktop interface of the vehicle-mounted system is solved, and the vehicle use experience of a user is improved.
Referring to fig. 2, step 01 includes:
011: creating a drawing thread;
012: and starting the drawing thread to acquire a starting animation resource package according to a preset storage path.
The processor is used for creating a drawing thread and starting the drawing thread to acquire a starting animation resource package according to a preset storage path.
Specifically, the process of acquiring the boot animation resource package of the vehicle-mounted system includes simultaneously creating a drawing thread of the display part from the thread pool, for example, a plurality of display parts such as a main driving display screen, a secondary driving display screen and/or an instrument display screen can be included in a cabin, and starting the thread, and the code can be expressed as: "newBootanimation (package, loop)". After the drawing thread is started, a startup animation resource package of "bootanimation-0.zip" can be obtained according to a preset storage path.
Thus, the drawing thread can be created and started, and the boot animation resource package is acquired under the preset storage path so as to determine the parameters of the boot animation resource and present the boot animation resource.
Referring to fig. 3 and 4, step 02 includes:
021: loading a boot animation resource package to obtain a description file;
022: and reading the description file to determine drawing parameters and playing parameters.
The processor is used for loading the boot animation resource package to acquire the description file, and reading the description file to determine the drawing parameters and the playing parameters.
Specifically, the obtained boot animation resource package of the vehicle-mounted system may be loaded, as shown in fig. 4, and a description file, such as a text file "desc. Txt", is read in the boot animation resource package to determine drawing parameters and playing parameters of the boot animation resource.
In one example, the acquired description file is decompressed and parsed, and the screen size currently required to be drawn is read as 3280x 580 pixels. The playing parameters include the frame rate of the first animation frame, which may be set to 25 frames per second, and may be appropriately adjusted according to the display efficiency of the screen or the use requirement of the user, and the specific values are not limited herein.
When the first segment resource packet includes two segments, as shown in fig. 4, the two segments may be recorded as a part0 segment and a part1 segment, and in the playing process, the part0 segment may be set to play once according to a preset frame rate, and the part1 segment is circularly played until an exit signal is received. Similarly, the section in the second section resource packet may be recorded as a section 2 section, and set to be played only once under certain conditions. The playing mode of each segment in the first segment resource packet and the second segment resource packet can be changed correspondingly according to the number of segments in the resource packet, and specific playing parameters are not limited herein.
Therefore, the description file in the boot animation resource package can be obtained, and the drawing parameters and the playing parameters of the boot animation resource are determined so as to control the vehicle-mounted system to present the first segment resource package.
Referring to fig. 5, step 03 includes:
031: creating a local window through a drawing thread;
032: setting a local window according to the drawing parameters;
033: and drawing the image resources in the first segment resource package in the local window in sequence according to the playing parameters so as to present the animation effect of the first segment resource package.
The processor is used for creating a local window through the drawing thread, setting the local window according to drawing parameters, and drawing image resources in the first segment resource package in the local window according to playing parameters in sequence to present the animation effect of the first segment resource package.
Specifically, a local window (native surface) can be created through the created drawing thread, and various parameters of the local window are set according to the decompressed and parsed description file, namely, the text file "desc. Txt", drawing parameters. In one example, the Android system independent service "surfeflinger" may be used to set the local window. The local window may provide a rendering region of the image resource. After the setting of the local window is completed, the image resources in the first segment resource package can be drawn in the local window in a certain sequence according to the playing parameters so as to present the animation effect presented by a plurality of multi-frame images with opaque backgrounds in the first segment resource package.
Therefore, the local window can be drawn, parameters of the local window can be set, and multi-frame images with opaque backgrounds in the image resource package can be sequentially played according to the playing parameters, so that the animation effect of the multi-frame images can be presented.
Step 032 includes:
the size of the local window, pixel format and intermediate interface layer properties are set according to the rendering parameters.
The processor is configured to set the size of the local window, the pixel format, and the intermediate interface layer properties according to the rendering parameters.
Specifically, the process of setting the local window according to the drawing parameters includes setting the size, pixel format, and intermediate interface layer properties of the local window. In one example, "readyToRun ()" may be defined to create a local window with wide and high parameters 3280 and 580, respectively, in PIXEL FORMAT pixel_format_transmission. And setting an intermediate interface layer (EGL attribute) attribute of the local window according to the drawing parameters in the "fact. Setting EGL_ALPHA_SIZE to 8; egl_depth_size is set to 16. The size of the local window, pixel format, and intermediate interface layer attribute setup process may vary with the drawing parameters obtained in the boot animation resource package.
In this way, the size, pixel format, and intermediate interface layer properties of the local window can be set according to the rendering parameters, providing an area for rendering and rendering the animation resource package.
Referring to fig. 6, step 033 includes:
0331: setting a background transparency parameter value before drawing image resources of a first segment resource packet of each frame;
0332: synthesizing each drawn frame image with a display background to obtain a first animation frame;
0333: and presenting the first animation frame according to the playing parameters so as to present the animation effect of the first fragment resource package.
The processor is used for setting a transparency parameter value of a display background before drawing the image resource of the first segment resource package of each frame, synthesizing the drawn frame image of each frame with the display background to obtain a first animation frame, and presenting the first animation frame according to the playing parameter to present the animation effect of the first segment resource package.
Specifically, after the local window is created and set, the background transparency parameter value, that is, the opacity value (Alpha), in the color buffer (color buffers) is cleared to make the background completely transparent. And then, drawing a multi-frame image with opaque background in the first segment resource package in a local window with transparent background, displaying each frame of drawn image, and synthesizing with the display background in the local window to obtain a first animation frame. After all the first animation frames are obtained, the first animation frames can be played according to the playing parameters, and the animation effect of the first fragment resource package is presented. In one example, the play parameters include a frame rate of the first animation frame and a play count, which may be set to 25 frames per second, with the clip being played once. The playing parameters can be appropriately adjusted according to the display efficiency of the screen or the use requirement of the user, and specific values are not limited herein.
Therefore, the transparency of the background displayed by the local window can be set, the first animation frame synthesized by each frame of image and the local window is presented according to a certain playing parameter, and finally the animation effect of the multi-frame image with opaque background in the first segment resource package is presented.
Referring to fig. 7, step 04 includes:
041: and in response to receiving an exit signal of the startup animation, sequentially drawing multi-frame images of the second segment resource package on a local window according to the playing parameters so as to present a background fade animation effect of the second segment resource package.
The processor is used for responding to the received exit signal of the startup animation, and sequentially drawing multi-frame images of the second segment resource package on the local window according to the playing parameters so as to present the background fade animation effect of the second segment resource package.
Specifically, the method can respond to the received exit signal of the startup animation, namely after the drawing thread exits the exit signal, the playing of the segments in the first segment resource packet is terminated, and the middle image resources of the second segment resource packet are sequentially drawn in the local window according to the playing parameters in a certain sequence, so as to present the background fade-out animation effect exhibited by the multi-frame images in the second segment resource packet.
Therefore, the playing of the current image resource can be stopped after the received exit signal of the startup animation, and the multi-frame image resource with the background transparency increased in the image resource package is sequentially played according to the playing parameters, so that the animation effect of fading the background of the multi-frame image resource can be presented.
Referring to fig. 8 and 9, step 041 includes:
0411: before drawing the image of the second segment resource package of each frame, setting and displaying the background transparency parameter value;
0412: synthesizing each drawn frame image with a display background to obtain a second animation frame;
0413: and presenting the second animation frame according to the playing parameters so as to present the background of the second fragment resource package to fade out the animation effect.
The processor is used for setting a transparency parameter value of a display background before drawing the image of the second segment resource package of each frame, synthesizing the drawn frame image of each frame with the display background to obtain a second animation frame, and presenting the second animation frame according to the playing parameter to present the animation effect of the background of the second segment resource package.
Specifically, after the local window is created, the specified pixel format parameters are entered, and the background transparency parameters in the middle interface layer attribute, i.e., the size of the opacity value (Alpha), and the buffer depth (z-buffer) are set. Wherein z represents a depth value, the depth of a pixel point represents the distance between the pixel point and the camera in the three-dimensional space, and the larger the depth value is, the farther the pixel point is from the camera, otherwise, the closer the pixel point is from the camera. When each frame of picture is drawn in the local window, parameters of glClearColor () can be modified, for example, depth values of all pixel points are set to be the same value, so that pixel points with sequential differences in drawing time are ensured not to be mutually covered. In addition, in the process of drawing each frame of picture in a certain order, the background transparency parameter, that is, the opacity value (Alpha) in the color buffer (color buffers) is cleared, so that the background is completely transparent.
Further, multi-frame images with increasing background transparency in the second segment resource package are drawn in a local window provided with a transparent background, each frame of drawn images can be displayed, and the images are synthesized with the display background in the local window to obtain a second animation frame. After all the second animation frames are obtained, the second animation frames can be played according to the playing parameters, the background fade-out animation effect that the second fragment resource package is gradually changed from opaque to transparent is presented, and the transparency change among the image frames is required to follow a certain gradient rule in the process. As shown in fig. 9, in one example, the gradient of increasing transparency between image frames of the background fade-out animation effect is 25%, and the exit animation includes 5 second animation frames, which have transparency of 0%, 25%, 50%, 75%, and 100% in order. And after the playing of the 5 second animation frames contained in the background fade-out animation effect is finished, a desktop interface of the vehicle-mounted system is presented, such as an android system desktop. The gradient of transparency change between image frames in the background fade-out animation effect can be changed according to the requirement of a user, and is not limited herein.
In the above example, the play parameters include the frame rate of the second animation frame and the play times, which may be set to 25 frames per second, and the clip is played once. The playing parameters can be appropriately adjusted according to the display efficiency of the screen or the use requirement of the user, and specific values are not limited herein.
Therefore, the background transparency of the local window display can be set, the second animation frame obtained by combining each frame of image with the local window is presented according to a certain playing parameter, and finally, the background fade-out animation effect of the multi-frame images with the background transparency increased in the second segment resource package is presented, so that the use experience of the vehicle-mounted multimedia equipment is improved.
Referring to fig. 10, step 011 includes:
0111: creating an administrator oriented process;
0112: creating a startup animation program process by facing an administrator process;
0113: drawing threads are created by a boot animation program process.
The processor is used for creating an administrator oriented process, creating a boot animation program process through the administrator oriented process and creating a drawing thread through the boot animation program process.
Specifically, after the on-vehicle system is started, the process of creating the drawing thread may include creating a manager-oriented (serviceManager) process, running a "bootanimation" creating a boot animation program process through the manager-oriented process, and finally creating the drawing thread simultaneously from a thread pool including multiple threads through the boot animation program process, where the drawing thread may include drawing a main driving display screen, a sub-screen display screen, and/or an instrument animation, etc.
Therefore, the created manager-oriented process can be used for further creating a startup animation program process, and the drawing process is created through the startup animation program process so as to acquire a startup animation resource package, and finally, the animation effect of the image resource is presented.
The present application also provides a computer readable storage medium storing a computer program which, when executed by one or more processors, implements the above-described method of vehicle cabin light control.
In the description of the present specification, the descriptions of the terms "above," "specifically," "similarly," and the like mean that a particular feature, structure, material, or characteristic described in connection with an embodiment or example is included in at least one embodiment or example of the present application. In the present specification, schematic representations of the above terms are not intended to refer to the same embodiments or examples. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, the different embodiments or examples described in this specification and the features of the different embodiments or examples may be combined and combined by those skilled in the art without contradiction.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and further implementations are included within the scope of the preferred embodiment of the present application in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the embodiments of the present application.
While embodiments of the present application have been shown and described above, it will be understood that the above embodiments are illustrative and not to be construed as limiting the present application, and that variations, modifications, alternatives, and variations may be made to the above embodiments by one of ordinary skill in the art within the scope of the present application.

Claims (11)

1. A vehicle control method, characterized in that the method comprises:
acquiring a boot animation resource package of a vehicle-mounted system, wherein the boot animation resource package comprises a first segment resource package and a second segment resource package, the first segment resource package comprises multi-frame image resources with opaque background, and the second segment resource package comprises multi-frame image resources with incremental background transparency;
determining drawing parameters and playing parameters of the starting-up animation resources;
controlling the vehicle-mounted system to present the first segment resource package according to the drawing parameters and the playing parameters;
and responding to the received exit signal of the startup animation, controlling the vehicle-mounted system to stop presenting the first fragment resource package, and presenting the second fragment resource package according to the drawing parameters and the playing parameters to form a background fade-out animation effect.
2. The method of claim 1, wherein the obtaining a boot animation resource package of the vehicle-mounted system comprises:
creating a drawing thread;
and starting the drawing thread to acquire the starting animation resource package according to a preset storage path.
3. The method of claim 2, wherein determining the drawing parameters and the playing parameters of the boot animation resources comprises:
loading the starting-up animation resource package to obtain a description file;
and reading the description file to determine the drawing parameters and the playing parameters.
4. The method of claim 2, wherein the controlling the in-vehicle system to present the first segment resource package according to the rendering parameters and the playback parameters comprises:
creating a local window through the drawing thread;
setting the local window according to the drawing parameters;
and drawing the image resources in the first segment resource package in the local window according to the playing parameters in sequence to present the animation effect of the first segment resource package.
5. The method of claim 4, wherein the setting the local window according to the rendering parameters comprises:
and setting the size, pixel format and middle interface layer attribute of the local window according to the drawing parameters.
6. The method of claim 4, wherein sequentially drawing the image resources in the first segment resource package in the local window according to the playback parameters to present the animation effect of the first segment resource package comprises:
setting a background transparency parameter value before drawing the image resource of the first segment resource package of each frame;
synthesizing each drawn frame image with a display background to obtain a first animation frame;
and presenting the first animation frame according to the playing parameter so as to present the animation effect of the first fragment resource package.
7. The method of claim 4, wherein controlling the in-vehicle system to stop rendering the first segment resource package and render the second segment resource package according to the rendering parameters and the playing parameters to form a background fade animation effect in response to receiving an exit signal for a boot animation comprises:
and in response to receiving an exit signal of the startup animation, sequentially drawing multi-frame images of the second segment resource package on the local window according to the play parameters so as to present a background fade animation effect of the second segment resource package.
8. The method of claim 7, wherein the sequentially drawing the multi-frame images of the second segment resource package in the local window according to the play parameter to present the background fade-out animation effect of the second segment resource package comprises:
setting a background transparency parameter value before drawing an image of the second segment resource package of each frame;
synthesizing each drawn frame image with a display background to obtain a second animation frame;
and presenting the second animation frame according to the playing parameter so as to present the background fade animation effect of the second fragment resource package.
9. The method of claim 2, wherein creating a drawing thread comprises:
creating an administrator oriented process;
creating a startup animation program process through the manager-oriented process;
and creating the drawing thread through the starting-up animation program process.
10. A vehicle comprising a memory and a processor, the memory having stored therein a computer program which, when executed by the processor, implements the method of any one of claims 1-9.
11. A computer readable storage medium, characterized in that the computer readable storage medium stores a computer program which, when executed by one or more processors, implements the method according to any of claims 1-9.
CN202310078629.7A 2023-01-16 2023-01-16 Vehicle control method, vehicle, and computer-readable storage medium Pending CN116302247A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310078629.7A CN116302247A (en) 2023-01-16 2023-01-16 Vehicle control method, vehicle, and computer-readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310078629.7A CN116302247A (en) 2023-01-16 2023-01-16 Vehicle control method, vehicle, and computer-readable storage medium

Publications (1)

Publication Number Publication Date
CN116302247A true CN116302247A (en) 2023-06-23

Family

ID=86831401

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310078629.7A Pending CN116302247A (en) 2023-01-16 2023-01-16 Vehicle control method, vehicle, and computer-readable storage medium

Country Status (1)

Country Link
CN (1) CN116302247A (en)

Similar Documents

Publication Publication Date Title
KR101315081B1 (en) 3D display handling of subtitles
US6292187B1 (en) Method and system for modifying the visual presentation and response to user action of a broadcast application's user interface
EP1107605B1 (en) A method for encoding animation in an image file
US6657637B1 (en) Moving image combining apparatus combining computer graphic image and at least one video sequence composed of a plurality of video frames
EP1628477A1 (en) Reproduction device and program
US9008493B2 (en) Information processing device, information processing method, and program
US8525873B2 (en) Information processing device, information processing method, and program
RU2463661C2 (en) Animated desktop
JP2015039216A (en) Method and device for handling multiple image streams using metadata
JP2001351126A (en) Computer-readable recording medium with program of game recorded thereon, program of game and method/ device for processing game
EP2058730A2 (en) Image processing apparatus, image processing method, and image processing program
US8866885B2 (en) Information processing device, information processing method, and program
US20140023345A1 (en) Information processing device, information processing method, and program
JP7267429B2 (en) Display control device, display control method and program
CN116302247A (en) Vehicle control method, vehicle, and computer-readable storage medium
US6856322B1 (en) Unified surface model for image based and geometric scene composition
CN110597577A (en) Head-mounted visual equipment and split-screen display method and device thereof
JP4260747B2 (en) Moving picture composition method and scene composition method
KR20210090244A (en) Method, computer program, and apparatus for generating an image
KR100390028B1 (en) Control apparatus and method for On Screen Display of the moving picture player
CN113986438A (en) Animation loading method, system, device and computer readable storage medium
US9251766B2 (en) Composing stereo 3D windowed content
CN115665461B (en) Video recording method and virtual reality device
US11837199B2 (en) Image transmission apparatus, image transmission method, and program
EP1345425B1 (en) Method and digital television unit for operating broadcast applications

Legal Events

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

Effective date of registration: 20240117

Address after: No. 48, room 1507, 15th floor, Fumin Building, 18 Beijiang Avenue, Zhaoqing high tech Zone, Zhaoqing City, Guangdong Province, 526238

Applicant after: Zhaoqing Xiaopeng New Energy Investment Co.,Ltd.

Address before: 510000 No.8 Songgang street, Cencun, Tianhe District, Guangzhou City, Guangdong Province

Applicant before: GUANGZHOU XIAOPENG MOTORS TECHNOLOGY Co.,Ltd.

TA01 Transfer of patent application right