Vehicle lamp panel animation display method and device, vehicle and storage medium
By synchronously checking and cacheing animation image frames received by the vehicle light board, the error frames and lag problems caused by frame-by-frame transmission are solved, and a smoother animation display effect is achieved.
Patent Information
- Application Number
- CN202311748652.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-18
- Publication Date
- 2025-06-20
AI Technical Summary
When existing vehicle light boards realize animation display, transmitting image frame data frame by frame is prone to error frames and lag problems, resulting in poor animation display.
By receiving the image frames to be displayed and performing frame synchronization verification on each frame, after the verification is passed, the frames are placed in the cache pool. When the playback event is triggered, the image frame is retrieved from the cache pool for display.
It effectively avoids data frame errors during image frame transmission, reduces lag phenomenon, and improves the smoothness of lamp board animation display.
Smart Images

Figure CN120179835A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the technical field of vehicles, and particularly to an animation display method, device, vehicle, and storage medium for a vehicle light board. Background Art
[0002] With the booming development of the automotive industry, the design of vehicle light boards has evolved in the direction of intelligence, for example, supporting the implementation of animation display effects on vehicle light boards.
[0003] Most of the existing solutions for implementing animation display on vehicle light boards are as follows: The animations to be displayed are transmitted frame by frame to the vehicle light board for display. However, when the data resources of the image frames of the animation to be displayed are large, the method of transmitting the corresponding image frame data frame by frame to the vehicle light board is prone to problems such as incorrect frames and lags, resulting in unsmooth animation display. Summary of the Invention
[0004] This application provides an animation display method, device, vehicle, and storage medium for a vehicle light board, aiming to improve the animation display effect of the vehicle light board.
[0005] To achieve the above object, this application provides an animation display method for a vehicle light board, and the animation display method for the vehicle light board includes:
[0006] Receiving each image frame corresponding to the animation to be displayed;
[0007] Performing frame synchronization verification on each of the image frames, and when the verification passes, putting the image frame into a cache pool;
[0008] When a playback event is triggered, sequentially obtaining each of the image frames from the cache pool and displaying them on the light board.
[0009] Optionally, the image frame includes a first-position image frame or a second-position image frame;
[0010] The step of performing frame synchronization verification on each of the image frames and putting the image frame into the cache pool when the verification passes includes:
[0011] If the image frame includes a first-position image frame, performing frame synchronization verification on the first-position image frame, and when the verification passes, constructing a second-position image frame corresponding to the frame sequence number based on the first-position image frame and the frame sequence number corresponding to the first-position image frame, and putting the first-position image frame and the second-position image frame corresponding to the frame sequence number into the cache pool;
[0012] Alternatively, if the image frame includes a second-position image frame, perform frame synchronization verification on the second-position image frame. When the verification passes, construct a first-position image frame with the corresponding frame number based on the second-position image frame and the frame number corresponding to the second-position image frame, and place the first-position image frame and the second-position image frame with the corresponding frame number into the buffer pool.
[0013] Optionally, the image frame includes a first-position image frame and a second-position image frame;
[0014] The step of performing frame synchronization verification on each image frame and placing the image frame into the buffer pool when the verification passes includes:
[0015] If the image frame includes the first-position image frame and the second-position image frame, perform frame synchronization verification on the first-position image frame and the second-position image frame, and when both the first-position image frame and the second-position image frame pass the verification, place the first-position image frame and the second-position image frame into the buffer pool.
[0016] Optionally, the first-position image frame includes a first-position image frame verification value and a complete image verification value; the second-position image frame includes a second-position image frame verification value and the complete image verification value; the first-position image frame verification value is calculated based on the pixel information of the first-position image frame; the second-position image frame verification value is calculated based on the pixel information of the second-position image frame; the complete image verification value is calculated based on the pixel information of the first-position image frame and the pixel information of the second-position image frame;
[0017] The step of performing frame synchronization verification on the first-position image frame and the second-position image frame includes:
[0018] Perform frame synchronization verification on the first-position image frame based on the first-position image frame verification value and the complete image verification value;
[0019] Perform frame synchronization verification on the second-position image frame based on the second-position image frame verification value and the complete image verification value.
[0020] Optionally, before the step of triggering the playback event, it further includes:
[0021] If the number of image frames cached in the buffer pool reaches a preset cache number of frames, activate the playback event.
[0022] Optionally, the vehicle includes a cockpit entertainment processing unit, and the step of receiving each image frame corresponding to the animation to be displayed includes:
[0023] Receive each of the image frames transmitted by the cockpit entertainment processing unit based on a preset transmission channel.
[0024] Optionally, the gray-scale information of each pixel point in the image frame is represented in binary.
[0025] An embodiment of the present application further provides an animation display device for a vehicle lamp panel. The animation display device for the vehicle lamp panel includes:
[0026] A receiving module, configured to receive each image frame corresponding to the animation to be displayed;
[0027] A verification cache module, configured to perform frame synchronization verification on each image frame, and put the image frame into the cache pool when the verification passes;
[0028] A display module, configured to sequentially obtain each image frame from the cache pool and display it on the lamp panel when a playback event is triggered.
[0029] An embodiment of the present application further provides a terminal device. The terminal device includes a memory, a processor, and an animation display program for a vehicle lamp panel stored on the memory and executable on the processor. When the animation display program for the vehicle lamp panel is executed by the processor, the steps of the above-mentioned animation display method for the vehicle lamp panel are implemented.
[0030] An embodiment of the present application further provides a computer-readable storage medium. A vehicle lamp panel animation display program is stored on the computer-readable storage medium. When the vehicle lamp panel animation display program is executed by a processor, the steps of the above-mentioned animation display method for the vehicle lamp panel are implemented.
[0031] The animation display method, device, vehicle, and storage medium for a vehicle lamp panel proposed in the embodiments of the present application receive each image frame corresponding to the animation to be displayed, perform frame synchronization verification on each image frame, and put the image frame into the cache pool when the verification passes; when a playback event is triggered, sequentially obtain each image frame from the cache pool and display it on the lamp panel. The embodiments of the present application perform frame synchronization verification on the received image frames to avoid data frame errors during the transmission of the image frames, resulting in the animation display effect not meeting the actual needs of users. At the same time, by adopting the strategy of the cache pool, directly obtain each image frame from the buffer pool for display during animation playback, without waiting for the completion of the transmission of each image frame data to display the data of each image frame, thereby reducing the stuttering phenomenon and improving the smoothness of the lamp panel animation display. Description of the Drawings
[0032] Figure 1 It is a schematic diagram of the function modules of the headlight controller related to the animation display method for the vehicle lamp panel of the present application;
[0033] Figure 2 Schematic flowchart of the first embodiment of the animation display method for the vehicle lamp panel of the present application;
[0034] Figure 3 Schematic flowchart of the second embodiment of the animation display method for the vehicle lamp panel of the present application;
[0035] Figure 4 Schematic flowchart of the third embodiment of the animation display method for the vehicle lamp panel of the present application;
[0036] Figure 5 Schematic flowchart of the fourth embodiment of the animation display method for the vehicle lamp panel of the present application.
[0037] The realization, functional features and advantages of the present application will be further described in conjunction with the embodiments with reference to the accompanying drawings. Detailed implementation manners
[0038] It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0039] The main solution of the embodiments of the present application is: by receiving each image frame corresponding to the animation to be displayed, performing frame synchronization verification on each image frame, and putting the image frame into the cache pool when the verification passes; when the playback event is triggered, obtaining each image frame from the cache pool in sequence and displaying it on the lamp panel. The embodiments of the present application perform frame synchronization verification on the received image frames to avoid data frame errors during the transmission of image frames, resulting in the animation display effect not meeting the actual needs of users. At the same time, by adopting the strategy of the cache pool, when the animation is played, each image frame is directly obtained from the buffer pool for display, without waiting for the data transmission of each image frame to be completed before displaying the data of each image frame, thereby reducing the stuttering phenomenon and improving the smoothness of the lamp panel animation display.
[0040] Technical terms involved in the present application:
[0041] CANFD, CAN FD is an extension of the original CAN protocol specified in ISO11898-1, used to respond to the increasing demand for bandwidth in the automotive network.
[0042] In the embodiments of the present application, it is considered that in the related technical solutions, the animation to be displayed is transmitted frame by frame to the vehicle headlight controller. When the amount of data contained in an image frame is relatively large, the transmission speed of the image frame will be relatively slow, and there may be a situation where the transmission speed of the image frame cannot keep up with the refresh rate of the vehicle light board animation. For example, in a scenario where the number of light beads in the vehicle headlight is relatively large, since each light bead corresponds to a pixel point of the image frame, when the number of light beads is large, the number of pixel points contained in the image frame to be displayed on the light board is more, and the amount of data contained in each image frame is larger. Assuming that the data of each image frame reaches 0.025 Mbit, and the transmission speed of the current transmission channel is 0.5 Mbit / s, and the vehicle light board refreshes the frame data every 40 ms. At this time, the transmission speed of the image frame cannot keep up with the refresh rate of the light board animation, which will cause the vehicle light board animation to display stutter. At the same time, each image frame data may be interfered by the environment during the transmission process, resulting in a deviation between the frame data transmitted to the vehicle light board and the original data. At this time, the animation data displayed on the vehicle light board may not meet the actual needs of users, and the display effect is not good.
[0043] Based on this, the embodiments of the present application propose a solution. By verifying the image frame data transmitted to the vehicle light board, the probability of the light board displaying incorrect frame data can be reduced, and the image frames are cached in a cache pool. When the animation is displayed, each image frame is directly obtained from the cache pool for display, without waiting for each image frame data transmission to complete before displaying each image frame data, which can reduce the probability of the animation stuttering.
[0044] The method of the embodiments of the present application can be applied to the vehicle headlight controller. The vehicle has a light board, and multiple light beads are integrated on the light board. The vehicle headlight controller can control the lighting, extinguishing or display of gray levels of each light bead. The vehicle headlight controller can be physically connected to the cockpit entertainment processing unit to achieve data interaction. For example, the vehicle headlight controller can receive the image frame data sent by the cockpit entertainment processing unit and control the display gray levels of each light bead based on the gray level information contained in the image frame data.
[0045] Specifically, refer to Figure 1 , Figure 1 which is a schematic diagram of the functional modules of the vehicle headlight controller involved in the animation display method of the vehicle light board of the present application. In this embodiment, the vehicle headlight controller at least includes an output module 110, a processor 120, a memory 130, and a communication module 140.
[0046] The operating system and the animation display program of the vehicle lamp board are stored in the memory 130. The vehicle lamp controller can store information such as each image frame corresponding to the animation to be displayed in the memory 130. The output module 110 can be a display screen, a speaker, etc. The communication module 140 can include a WIFI module, a mobile communication module, a Bluetooth module, etc., and communicate with external devices (such as a mobile terminal APP) or a server through the communication module 140.
[0047] Among them, when the animation display program of the vehicle lamp board in the memory 130 is executed by the processor, the following steps are implemented:
[0048] Receive each image frame corresponding to the animation to be displayed;
[0049] Perform frame synchronization verification on each of the image frames, and when the verification passes, put the image frame into the cache pool;
[0050] When a playback event is triggered, sequentially obtain each of the image frames from the cache pool and display them on the lamp board.
[0051] Further, when the animation display program of the vehicle lamp board in the memory 130 is executed by the processor, the following steps are also implemented:
[0052] If the image frame includes a first-position image frame, perform frame synchronization verification on the first-position image frame, and when the verification passes, construct a second-position image frame corresponding to the frame number based on the first-position image frame and the frame number corresponding to the first-position image frame, and put the first-position image frame and the second-position image frame corresponding to the frame number into the cache pool.
[0053] Further, when the animation display program of the vehicle lamp board in the memory 130 is executed by the processor, the following steps are also implemented:
[0054] If the image frame includes a second-position image frame, perform frame synchronization verification on the second-position image frame, and when the verification passes, construct a first-position image frame corresponding to the frame number based on the second-position image frame and the frame number corresponding to the second-position image frame, and put the first-position image frame and the second-position image frame corresponding to the frame number into the cache pool.
[0055] Further, when the animation display program of the vehicle lamp board in the memory 130 is executed by the processor, the following steps are also implemented:
[0056] If the image frame includes the first-position image frame and the second-position image frame, perform frame synchronization verification on the first-position image frame and the second-position image frame, and when both the first-position image frame and the second-position image frame pass the verification, put the first-position image frame and the second-position image frame into the cache pool.
[0057] Further, when the animation display program of the vehicle lamp board in the memory 130 is executed by the processor, the following steps are further implemented:
[0058] Perform frame synchronization verification on the first position image frame based on the first position image frame verification value and the complete image verification value;
[0059] Perform frame synchronization verification on the second position image frame based on the second position image frame verification value and the complete image verification value.
[0060] Further, when the animation display program of the vehicle lamp board in the memory 130 is executed by the processor, the following steps are further implemented:
[0061] If the number of image frames cached in the buffer pool reaches the preset cache number of frames, activate the playback event.
[0062] Further, when the animation display program of the vehicle lamp board in the memory 130 is executed by the processor, the following steps are further implemented:
[0063] Receive each of the image frames transmitted by the cockpit entertainment processing unit based on a preset transmission channel.
[0064] In this embodiment, through the above solution, specifically by receiving each image frame corresponding to the animation to be displayed, performing frame synchronization verification on each image frame, and putting the image frame into the cache pool when the verification passes; when the playback event is triggered, sequentially obtain each image frame from the cache pool and display it on the lamp board. In the embodiment of the present application, frame synchronization verification is performed on the received image frames to avoid data frame errors during the transmission of the image frames, resulting in the animation display effect not meeting the actual needs of the user. At the same time, by adopting the strategy of the cache pool, directly obtain each image frame from the buffer pool for display during the animation playback, without waiting for the data transmission of each image frame to be completed before displaying the data of each image frame, thereby being able to reduce the stuttering phenomenon and improve the smoothness of the lamp board animation display.
[0065] Based on the above terminal device architecture but not limited to the above architecture, the method embodiment of the present application is proposed. The method embodiment of the present application is applied to a vehicle lamp controller, and the vehicle lamp controller can communicate with the cockpit entertainment processing unit.
[0066] Refer to Figure 2 , Figure 2 is the flowchart of the first embodiment of the animation display method for the vehicle lamp board of the present application. The animation display method for the vehicle lamp board in this embodiment includes:
[0067] Step S101, receive each image frame corresponding to the animation to be displayed.
[0068] Among them, each of the above-mentioned image frames can be image frame data sequentially transmitted by the cockpit entertainment processing unit according to the frame numbers of the animation to be displayed. The animation to be displayed can be an animation selected by the user through the touch control center screen in the animation resource library, or an animation formed by the user custom-drawing multiple images through the animation production program on the center screen and setting the playing order of the multiple images.
[0069] In one implementation, the above-mentioned image frames can include complete image data to be displayed on the light board. For example, when the light board includes a left light board and a right light board, it can include image frame data to be displayed on the left light board and image frame data to be displayed on the right light board.
[0070] In another implementation, the above-mentioned image frames can include image data to be displayed at one position on the light board. For example, when the light board includes a left light board and a right light board, and the i-th frame images to be displayed on the left light board and the right light board are symmetric images (where i is a positive integer), then the above-mentioned image frames can include left image frame data or right image frame data. By only transmitting the image data at one position with symmetric attributes, the amount of computation can be reduced in this way.
[0071] Specifically, the cockpit entertainment unit can receive an animation display trigger event of the animation to be displayed executed by the user through the center screen of the cockpit entertainment system, and obtain the animation to be displayed. Alternatively, the cockpit entertainment unit can receive an animation display trigger event of the animation to be displayed triggered by the user through the mobile terminal APP, and obtain the animation to be displayed transmitted from the mobile terminal APP. After the cockpit entertainment unit obtains the animation to be displayed, it processes the animation to be displayed into individual image frames according to the frame numbers, and sequentially transmits each image frame to the vehicle lamp controller according to the frame numbers.
[0072] Furthermore, the cockpit entertainment unit can split the animation to be displayed into multiple frame data to obtain each initial image frame, and perform one or more of the following processing procedures on each initial image frame data to obtain each image frame:
[0073] Gray-scale processing: The cockpit entertainment unit can perform gray-scale processing on each initial image frame based on the number of lamp beads included in the light board, so that the gray value of each pixel included in the initial image frame is mapped to each lamp bead. To save the amount of computation, the gray value of each pixel point can be represented by a binary number (number of bits). In this way, when the number of lamp beads on the light board is relatively large, the amount of computation can be saved.
[0074] Compression processing: The in-vehicle entertainment unit can also obtain the maximum allowable power of the light panel, calculate the expected power for displaying the initial image frame on the light panel based on the grayscale information of each pixel point included in the initial image frame, and obtain the maximum allowable power of the light panel. If the expected power is greater than the maximum allowable power of the light panel, the initial image frame is compressed until the expected power is less than the maximum allowable power of the light panel, thereby ensuring the service life of the light panel.
[0075] Checksum generation processing: The in-vehicle entertainment processing unit can also calculate the synchronization frame checksum for each initial image frame, generate a checksum, and attach the checksum to the initial image frame.
[0076] Correspondingly, each pixel point in the above image frame can include corresponding grayscale information, and the grayscale information corresponding to each pixel point is represented in binary. Binary, that is, bit, is the smallest unit of information volume. By using bits to represent the grayscale information corresponding to each pixel point, in the scenario with a large number of lamp beads, the amount of computation can be saved. At the same time, the above image frame can also include a checksum, and the light panel controller can perform frame synchronization verification of the image frame based on this checksum.
[0077] Step S102, perform frame synchronization verification on each image frame, and put the image frame into the cache pool when the verification passes.
[0078] The cache pool in this embodiment can be considered as a cache queue, which contains a storage space with a preset storage size.
[0079] Specifically, in the solution of this embodiment, each time an image frame is received, frame synchronization verification is performed on the image frame. The purpose of performing frame synchronization verification is to verify whether the image frame data transmitted to the light panel controller has deviated from the original image frame data during the transmission process, so that the image frame data displayed on the vehicle light panel is the original data of the animation, thereby meeting the actual display requirements of users.
[0080] In the solution of this embodiment, the cyclic redundancy check algorithm (also known as the CRC algorithm) can be used for frame synchronization verification. If the verification result passes, it is determined that the image frame data has not had a transmission error, and the image frame data is put into the cache pool. If the verification result does not pass, it is determined that the image frame data has a transmission error, the image frame data is discarded, and a retransmission request is sent to the in-vehicle entertainment processing unit until the image frame corresponding to the received frame number passes the synchronization frame verification. Among them, the retransmission request can include the frame number and error type corresponding to the image frame, so that the in-vehicle entertainment processing unit can retransmit the corresponding image frame to the vehicle lamp controller based on the corresponding frame number.
[0081] After successfully receiving each image frame data and putting the image frame data into the cache pool through frame synchronization verification, the headlight controller can send a signal indicating successful pre-storage of the corresponding frame of the image frame to the in-vehicle entertainment processing unit, so that the in-vehicle entertainment processing unit can count the number of image frames cached by the headlight controller and trigger the in-vehicle entertainment processing unit to send the next frame of the image frame to the headlight controller.
[0082] Step S103, when the playback event is triggered, sequentially obtain each image frame from the cache pool and display it on the lamp board.
[0083] Specifically, if it is detected that the number of image frames cached in the cache pool reaches the preset number of cached frames, the playback event is activated. When the playback event is triggered, the headlight controller starts playing the animation to be displayed on the lamp board. During the playback of the animation to be displayed, each image frame is sequentially obtained from the cache pool according to the preset animation refresh rate and displayed on the lamp board.
[0084] In the solution of this embodiment, the above steps S101 and S102 are the pre-storage processes of the animation to be displayed, and this step S103 is the playback process of the animation to be displayed. It should be noted that the execution times of these two processes can overlap, that is, after the playback event is triggered and the headlight controller starts playing the first frame of the image frame data, as long as there is still image frame data in the animation to be displayed that has not been pre-stored in the cache pool, steps S101 and S102 can still be executed until all the image frame data of all the frames included in the animation to be displayed are successfully cached in the cache pool.
[0085] The solution of this embodiment receives each image frame corresponding to the animation to be displayed, performs frame synchronization verification on each image frame, and puts the image frame into the cache pool when the verification passes; when the playback event is triggered, sequentially obtain each image frame from the cache pool and display it on the lamp board. The embodiment of the present application performs frame synchronization verification on the received image frames to avoid data frame errors during the image frame transmission process, which may cause the animation display effect not to meet the actual needs of users. At the same time, by adopting the strategy of the cache pool, each image frame is directly obtained from the buffer pool for display during the animation playback, without waiting for all the image frame data transmissions to be completed before displaying each image frame data, thereby being able to reduce the stuttering phenomenon and improve the smoothness of the lamp board animation display.
[0086] See Figure 3 , Figure 3 is a schematic flowchart of the second embodiment of the method for animating the vehicle lamp board of the present application. Compared with the above embodiment, the image frames of this embodiment include the first-position image frames. The first-position image frames are correspondingly displayed in the first-position area of the vehicle lamp board (for example, the area corresponding to the left lamp board).
[0087] The steps of performing frame synchronization verification on each image frame and putting the image frame into the cache pool when the verification passes include:
[0088] Step S201, if the image frame includes a first-position image frame, perform frame synchronization verification on the first-position image frame. When the verification passes, construct a second-position image frame corresponding to the frame sequence number based on the first-position image frame and the frame sequence number of the first-position image frame, and put the first-position image frame and the second-position image frame corresponding to the frame sequence number into the cache pool.
[0089] Considering that some frame image data in the animation to be displayed may be symmetric image type data, in order to reduce the amount of computation during transmission, the cockpit entertainment processing unit can split a first-position image frame (such as a left lamp panel image frame) and a second-position image frame (such as a right lamp panel image frame) from the image belonging to the symmetric image type in a symmetric splitting manner, and only transmit the first-position image frame to the vehicle lamp controller. After receiving the first-position image frame, the vehicle lamp controller performs frame synchronization verification on the first-position image frame. After the verification passes, it constructs a second-position image frame based on the first-position image frame, and the second-position image frame and the first-position image frame satisfy an image symmetry relationship. Then, the vehicle lamp controller combines and caches the corresponding frame sequence number, the first-position image frame and the second-position image frame corresponding to the frame sequence number into the cache pool.
[0090] In this embodiment, through the above solution, when the image frame includes a first-position image frame, frame synchronization verification is performed on the first-position image frame. When the verification passes, a second-position image frame corresponding to the frame sequence number is constructed based on the first-position image frame and the frame sequence number of the first-position image frame, and the first-position image frame and the second-position image frame corresponding to the frame sequence number are put into the cache pool. By considering the scenario where there is image frame data of the symmetric image type, the transmitted image frame data only contains the first-position image frame, reducing the amount of computation, and by reusing the first-position image frame to construct complete image frame data, it can ensure the integrity of the animation display while reducing the data volume.
[0091] See Figure 4 , Figure 4 is a schematic flowchart of the third embodiment of the method for animating the vehicle lamp panel of the present application. Compared with the above embodiment, the image frame in this embodiment includes a second-position image frame. The second-position image frame is correspondingly displayed in the second-position area of the vehicle lamp panel (such as the area corresponding to the right lamp panel). Correspondingly, the steps of performing frame synchronization verification on each image frame and putting the image frame into the cache pool when the verification passes include:
[0092] Step S301: If the image frame includes a second-position image frame, perform frame synchronization verification on the second-position image frame. When the verification passes, construct a first-position image frame corresponding to the frame sequence number based on the second-position image frame and the frame sequence number of the second-position image frame, and put the first-position image frame corresponding to the frame sequence number and the second-position image frame into the buffer pool.
[0093] Among them, the specific implementation principle and effect of step S301 are the same as those of step S201 above, and will not be elaborated here.
[0094] See Figure 5 , Figure 5 , which is a schematic flowchart of the fourth embodiment of the method for animating display of the vehicle lamp board in this application. Compared with the above embodiment, the image frames in this embodiment include a first-position image frame and a second-position image frame. The first-position image frame corresponds to being displayed in the first-position area of the vehicle lamp board (such as the area corresponding to the left lamp board), and the second-position image frame corresponds to being displayed in the second-position area of the vehicle lamp board (such as the area corresponding to the left lamp board). The above steps of performing frame synchronization verification on each image frame and putting the image frame into the buffer pool when the verification passes include:
[0095] Step S401: If the image frame includes a first-position image frame and a second-position image frame, perform frame synchronization verification on the first-position image frame and the second-position image frame. When both the first-position image frame and the second-position image frame pass the verification, put the first-position image frame and the second-position image frame into the buffer pool.
[0096] In the solution of this embodiment, if the image frame data includes a first-position image frame and a second-position image frame, frame synchronization verification needs to be performed separately on the first-position image frame and the second-position image frame. When the first-position image frame passes the verification and the second-position image frame passes the verification, the corresponding frame sequence number, the first-position image frame corresponding to the frame sequence number, and the second-position image frame are combined and put into the buffer pool.
[0097] Through the above solution in this embodiment, when the image frame includes a first-position image frame and a second-position image frame, frame synchronization verification is performed on the first-position image frame and the second-position image frame. When both the first-position image frame and the second-position image frame pass the verification, the first-position image frame and the second-position image frame are put into the buffer pool, realizing the verification of the image frame data transmission process and reducing the probability of incorrect frame data.
[0098] Based on the above embodiments, the first-position image frame includes a first-position image frame check value and a complete image check value; the second-position image frame includes a second-position image frame check value and a complete image check value; the first-position image frame check value is calculated based on the pixel information of the first-position image frame; the second-position image frame check value is calculated based on the pixel information of the second-position image frame; the complete image check value is calculated based on the pixel information of the first-position image frame and the pixel information of the second-position image frame.
[0099] The steps of performing frame synchronization check on the first-position image frame and the second-position image frame include:
[0100] Step a, performing frame synchronization check on the first-position image frame based on the first-position image frame check value and the complete image check value.
[0101] Specifically, the cockpit entertainment processing unit can calculate the first-position image frame check value by using the cumulative checksum algorithm based on the product of the total number of pixel points included in the first-position image frame and the number of bits corresponding to the pixel points. For example, if the first-position image frame includes 114 pixel points and the pixel depth (i.e., the number of bits) of each pixel point is 4 bytes, then the product of the total number of pixel points included in the first-position image frame and the number of bits corresponding to the pixel points = 114 * 4, and the product result of 114 * 4 is converted into binary representation, and then the converted binary is accumulated bit by bit to obtain the first-position image frame check value.
[0102] Among them, the calculation principles of the second-position image frame check value and the complete image check value are the same as those of the first-position image frame check value, and will not be elaborated here.
[0103] After determining the first-position image frame check value, the second-position image frame check value and the complete image check value, the cockpit entertainment processing unit sends the first-position image frame data, the first-position image frame check value and the complete image check value to be transmitted to the headlight controller.
[0104] Correspondingly, the first-position image frame received by the headlight controller as the receiving end includes the first-position image frame data, the first-position image frame check value and the complete image check value, and then it can select the corresponding check method for check detection based on the check method adopted by the cockpit entertainment processing unit. For example, if the above cockpit entertainment processing unit uses the cumulative checksum algorithm to calculate the check value, the headlight controller accumulates the first-position image frame data, the first-position image frame check value and the complete image check value, and then adds 1. If the result is 0, it means that there is no transmission error in the first-position image frame data, and the frame synchronization check of the first-position image frame passes.
[0105] Step b: Perform frame synchronization verification on the second-position image frame based on the second-position image frame verification value and the complete image verification value.
[0106] Among them, the implementation principle of performing frame synchronization verification on the second-position image frame is the same as that of the first-position image frame above, and will not be elaborated here.
[0107] The solution of this embodiment verifies the first-position image frame and the second-position image frame based on the pixel information of the first-position image frame and the pixel information of the second-position image frame, and can perform verification in combination with the actual image pixel information, improving the accuracy of the image frame verification detection result.
[0108] Based on any of the above embodiments, before the step where the playback event is triggered, it may further include:
[0109] If the number of image frames cached in the buffer pool reaches the preset number of cached frames, activate the playback event.
[0110] Among them, the number of cached frames can be determined according to the actual situation. For example, it can be set to 10 frames.
[0111] Specifically, after the headlight controller caches each image frame into the buffer pool, it can send an image frame pre-storage success signal corresponding to the frame to the in-vehicle entertainment processing unit, so that the in-vehicle entertainment processing unit can count the number of image frames cached by the headlight controller. When the in-vehicle entertainment processing unit detects the number of image frames cached by the headlight controller, it can send a playback instruction to the headlight controller, and the headlight controller activates the playback event after receiving the playback instruction.
[0112] The solution of this embodiment activates the playback event when the number of image frames cached in the buffer pool reaches the preset number of cached frames, so that when starting to play the animation, there are enough frames of image frame data in the buffer pool that can be directly used for the display of the light panel image data, without waiting for the transmission process of the image frame data, and the image frame data display processing speed can keep up with the animation refresh rate, avoiding the stuttering phenomenon that occurs during the playback of the light panel animation.
[0113] Based on any of the above embodiments, the step of receiving each image frame corresponding to the animation to be displayed may include:
[0114] Receive each image frame transmitted by the cockpit entertainment processing unit based on the preset transmission channel.
[0115] Among them, the above transmission channel can be a CANFD physical link established between the cockpit entertainment processing unit and the headlight controller. CANFD has the characteristic of high speed, and can still reach 2m / s in the scenario where the amount of data contained in the image frame is large.
[0116] In addition, an embodiment of the present application further provides an animation display device for a vehicle lamp panel, and the animation display device for the vehicle lamp panel includes:
[0117] A receiving module, configured to receive each image frame corresponding to the animation to be displayed;
[0118] A verification cache module, configured to perform frame synchronization verification on each image frame, and put the image frame into the cache pool when the verification passes;
[0119] A display module, configured to sequentially obtain each image frame from the cache pool and display it on the lamp panel when a playback event is triggered.
[0120] For the principle and implementation process of the animation display device for the vehicle lamp panel in this embodiment, please refer to the above embodiments, and details are not described herein again.
[0121] In addition, an embodiment of the present application further provides a vehicle, and the vehicle includes a memory, a processor, and an animation display program for a vehicle lamp panel stored on the memory and executable on the processor. When the animation display program for the vehicle lamp panel is executed by the processor, the steps of the animation display method for the vehicle lamp panel as described above are implemented.
[0122] Since all the technical solutions of the foregoing embodiments are adopted when the animation display program for the vehicle lamp panel is executed by the processor, it has at least all the beneficial effects brought by all the technical solutions of the foregoing embodiments, and details are not described herein again.
[0123] In addition, an embodiment of the present application further provides a computer-readable storage medium, and a vehicle lamp panel animation display program is stored on the computer-readable storage medium. When the vehicle lamp panel animation display program is executed by the processor, the steps of the animation display method for the vehicle lamp panel as described above are implemented.
[0124] Since all the technical solutions of the foregoing embodiments are adopted when the animation display program for the vehicle lamp panel is executed by the processor, it has at least all the beneficial effects brought by all the technical solutions of the foregoing embodiments, and details are not described herein again.
[0125] Compared with the prior art, the method, device, vehicle, and storage medium for animating a vehicle lamp panel proposed in the embodiments of the present application receive each image frame corresponding to the animation to be displayed, perform frame synchronization verification on each image frame, and place the image frame in the buffer pool when the verification passes; when a playback event is triggered, each image frame is sequentially retrieved from the buffer pool and displayed on the lamp panel. The embodiments of the present application perform frame synchronization verification on the received image frames to avoid data frame errors during the transmission of the image frames, which may cause the animation display effect not to meet the actual needs of the user. At the same time, by adopting the strategy of the buffer pool, each image frame is directly retrieved from the buffer pool for display during the animation playback, without waiting for the data transmission of each image frame to be completed before displaying the data of each image frame, thereby reducing the stuttering phenomenon and improving the smoothness of the lamp panel animation display.
[0126] It should be noted that, in this article, the terms "include", "comprise", or any other variation thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or system including a series of elements includes not only those elements but also other elements not explicitly listed, or elements inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "including a..." does not exclude the existence of additional identical elements in the process, method, article, or system including the element.
[0127] The serial numbers of the above embodiments of the present application are only for description and do not represent the superiority or inferiority of the embodiments.
[0128] Through the description of the above embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus a necessary general hardware platform. Of course, they can also be implemented by hardware, but in many cases, the former is a better implementation method. Based on such an understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. The computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above and includes several instructions for causing a terminal device (which can be a mobile phone, computer, server, controlled terminal, or network device, etc.) to execute the methods of each embodiment of the present application.
[0129] The above are only the preferred embodiments of the present application and do not limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made by using the content of the specification and drawings of the present application, or directly or indirectly applied in other related technical fields, shall be equally included in the patent protection scope of the present application.
Claims
1. A method for animated display of a vehicle lamp panel, characterized in that, The animation display method of the vehicle lamp panel includes: Receiving each image frame corresponding to the animation to be displayed; Performing frame synchronization verification on each of the image frames, and when the verification passes, putting the image frame into the cache pool; When a playback event is triggered, sequentially obtaining each of the image frames from the cache pool and displaying them on the lamp panel.
2. The method for animated display of a vehicle lamp panel according to claim 1, characterized in that, The image frame includes a first-position image frame or a second-position image frame; The step of performing frame synchronization verification on each of the image frames and putting the image frame into the cache pool when the verification passes includes: If the image frame includes a first-position image frame, performing frame synchronization verification on the first-position image frame, and when the verification passes, constructing a second-position image frame with a corresponding frame number based on the first-position image frame and the frame number corresponding to the first-position image frame, and putting the first-position image frame and the second-position image frame with the corresponding frame number into the cache pool; Or, if the image frame includes a second-position image frame, performing frame synchronization verification on the second-position image frame, and when the verification passes, constructing a first-position image frame with a corresponding frame number based on the second-position image frame and the frame number corresponding to the second-position image frame, and putting the first-position image frame and the second-position image frame with the corresponding frame number into the cache pool.
3. The method for animated display of a vehicle lamp panel according to claim 1, characterized in that, The image frame includes a first-position image frame and a second-position image frame; The step of performing frame synchronization verification on each of the image frames and putting the image frame into the cache pool when the verification passes includes: If the image frame includes the first-position image frame and the second-position image frame, performing frame synchronization verification on the first-position image frame and the second-position image frame, and when both the first-position image frame and the second-position image frame pass the verification, putting the first-position image frame and the second-position image frame into the cache pool.
4. The method for animated display of a vehicle lamp panel according to claim 3, characterized in that, The first-position image frame includes a first-position image frame verification value and a complete image verification value; the second-position image frame includes a second-position image frame verification value and the complete image verification value; The first-position image frame verification value is calculated based on the pixel information of the first-position image frame; The second-position image frame verification value is calculated based on the pixel information of the second-position image frame; The complete image verification value is calculated based on the pixel information of the first-position image frame and the pixel information of the second-position image frame; The step of performing frame synchronization verification on the first-position image frame and the second-position image frame includes: Performing frame synchronization verification on the first-position image frame based on the first-position image frame verification value and the complete image verification value; Performing frame synchronization verification on the second-position image frame based on the second-position image frame verification value and the complete image verification value.
5. The method for animated display of a vehicle lamp panel according to claim 1, characterized in that, Before the step of triggering the playback event, it further includes: If the number of image frames cached in the buffer pool reaches a preset cache frame number, activating the playback event.
6. The method for animated display of a vehicle lamp panel according to any one of claims 1 to 5, characterized in that, The vehicle includes a cockpit entertainment processing unit, and the step of receiving each image frame corresponding to the animation to be displayed includes: Receive each of the image frames transmitted by the cockpit entertainment processing unit based on a preset transmission channel.
7. The method for animated display of a vehicle lamp panel according to any one of claims 1 to 5, characterized in that, The gray-scale information of each pixel point in the image frame is represented in binary.
8. An apparatus for animated display of a vehicle lamp panel, characterized in that, The animation display device of the vehicle lamp panel includes: A receiving module, configured to receive each image frame corresponding to the animation to be displayed; A verification and caching module, configured to perform frame synchronization verification on each of the image frames, and put the image frame into a cache pool when the verification passes; A display module, configured to sequentially obtain each of the image frames from the cache pool and display them on the lamp panel when a playback event is triggered.
9. A computer-readable storage medium, characterized in that, A vehicle lamp panel animation display program is stored on the computer-readable storage medium. When the vehicle lamp panel animation display program is executed by a processor, the steps of the vehicle lamp panel animation display method according to any one of claims 1-7 are implemented.
10. A vehicle, characterized in that, It includes a memory, a processor, and a vehicle lamp panel animation display program stored on the memory and executable on the processor. When the vehicle lamp panel animation display program is executed by the processor, the steps of the vehicle lamp panel animation display method according to any one of claims 1-7 are implemented.
Citation Information
Cited By
Animation display method and apparatus for vehicle lamp panel, and vehicle and storage medium
EP4769178A1
Animation display method and apparatus for vehicle lamp panel, and vehicle and storage medium
WO2025130882A1