CN113986174A - Motorcycle starting animation display control method, control device and display system - Google Patents

Motorcycle starting animation display control method, control device and display system Download PDF

Info

Publication number
CN113986174A
CN113986174A CN202111262320.0A CN202111262320A CN113986174A CN 113986174 A CN113986174 A CN 113986174A CN 202111262320 A CN202111262320 A CN 202111262320A CN 113986174 A CN113986174 A CN 113986174A
Authority
CN
China
Prior art keywords
data
display
motorcycle
frame
boot animation
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
CN202111262320.0A
Other languages
Chinese (zh)
Inventor
潘紫东
张贞耀
秦鑫
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wuxi Hope Microelectronics Co ltd
Original Assignee
Wuxi Hope Microelectronics 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 Wuxi Hope Microelectronics Co ltd filed Critical Wuxi Hope Microelectronics Co ltd
Priority to CN202111262320.0A priority Critical patent/CN113986174A/en
Publication of CN113986174A publication Critical patent/CN113986174A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/1407General aspects irrespective of display type, e.g. determination of decimal point position, display with fixed or driving decimal point, suppression of non-significant zeros
    • 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

Landscapes

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

Abstract

The invention relates to the technical field of motorcycle instruments, and particularly discloses a motorcycle starting animation display control method, which comprises the following steps: acquiring a coding file, wherein the coding file is formed by compressing the upper computer according to boot animation data; performing data decompression on the encoded file to obtain boot animation data to be displayed; and sending the boot animation data to be displayed to a display screen for displaying. The invention also discloses a motorcycle starting animation display control device and a motorcycle starting animation display system. The motorcycle starting animation display control method provided by the invention can shorten the time for displaying the starting animation on the motorcycle instrument to 200 milliseconds, and is low in implementation cost.

Description

Motorcycle starting animation display control method, control device and display system
Technical Field
The invention relates to the technical field of motorcycle instruments, in particular to a motorcycle starting animation display control method, a motorcycle starting animation display control device and a motorcycle starting animation display system.
Background
The liquid crystal instrument of the motorcycle is more and more popular, can make the car owner enjoy better driving experience, has received liking of many consumers. The liquid crystal instrument of the motorcycle has more and more application scenes, not only can realize the function of navigating and projecting a screen through WIFI, but also can realize the function of playing music and answering a call through connecting a Bluetooth helmet through Bluetooth.
The motorcycle instrument is electrified to realize the function of quick start animation, so that the experience of a user on the motorcycle instrument can be improved, and the competitiveness of a product is enhanced. Because the price difference of the motorcycle instrument is large compared with that of the automobile instrument, the hardware performance of the motorcycle scheme is far weaker than that of the automobile instrument, and the motorcycle instrument has no hardware decoding function, so that the quick starting animation is difficult to realize by electrifying.
In the existing scheme, a chip with larger capacity of an on-chip SRAM is generally adopted, a display area is placed in the area, the function of playing the motorcycle quick start animation is realized, and the defect is that the hardware cost is increased.
Disclosure of Invention
The invention provides a motorcycle starting animation display control method, a motorcycle starting animation display control device and a motorcycle starting animation display system, which solve the problem that the motorcycle quick starting animation display cannot be realized at low cost in the related technology.
As a first aspect of the present invention, there is provided a motorcycle boot animation display control method, comprising:
acquiring a coding file, wherein the coding file is formed by compressing the upper computer according to boot animation data;
performing data decompression on the encoded file to obtain boot animation data to be displayed;
and sending the boot animation data to be displayed to a display screen for displaying.
Further, the encoded file is formed by compressing the upper computer according to the boot animation data, and comprises:
the upper computer can compress the first frame of display picture data of the boot animation data through an LZ4 algorithm to form a first coding file;
the upper computer can sequentially generate difference data from each frame of display picture in the rest frame of display pictures except the first frame of display picture in the boot animation data and the previous frame of display picture through a dirty rectangle algorithm, and can compress the difference data through an LZ4 algorithm to form a second coding file;
the first encoded file and the second encoded file constitute the encoded file.
Further, the upper computer can compress the first frame display image data of the boot animation data through an LZ4 algorithm to form a first encoded file, including:
the upper computer can compress a first frame of display picture data in an RGB888 format as a data processing stream through an LZ4 algorithm to obtain a first encoded file, wherein the LZ4 algorithm comprises the following steps: multiple LZ4 sequences in an LZ4 data block are compressed as duplicate data is encountered by scanning each shift of a unit byte.
Further, the upper computer can generate difference data by sequentially passing each frame of display picture in the rest frames of display pictures except the first frame of display picture in the boot animation data and the previous frame of display picture through a dirty rectangle algorithm, and can compress the difference data through an LZ4 algorithm to form a second encoded file, including:
the upper computer can compare the next frame of display picture in the rest frames of display pictures except the first frame of display picture in the boot animation data with the adjacent previous frame of display picture, and calculate to obtain the area of the next frame of display picture which is changed compared with the adjacent previous frame of display picture,
forming a corresponding list of the changed area, wherein the list records the coordinate position, the length and the width of the changed area of the display picture and the metadata information of the area change;
the list is compressed by the LZ4 algorithm to form a second encoded file.
Further, the decompressing the encoded file to obtain the boot animation data to be displayed includes:
decompressing the encoded file frame by frame according to LZ4 algorithm;
and carrying out differential operation on the decompressed data according to a dirty rectangle algorithm to obtain video data in an RGB888 format, wherein the video data in the RGB888 format is the boot animation data to be displayed.
Further, the decompressing the encoded file frame by frame according to LZ4 algorithm includes:
taking the first byte of the first LZ4 sequence in the LZ4 data block as the current operation position;
taking the current operation position as Token, and taking the data of the high four bits as the length of the literal sequence;
reading all the literal sequences according to the length of the literal sequences, and copying all the literal sequences to an output cache;
reading all matching sequences by the same method as reading the literal sequences, and copying all matching sequences to an output cache;
the above steps of reading all literal sequences are repeated until all LZ4 data blocks are decompressed.
Further, the performing a differential operation on the decompressed data according to a dirty rectangle algorithm to obtain video data in an RGB888 format includes:
and (3) forming the next frame data by overlapping the differential data of the next frame on the basis of the previous frame for each frame of decompressed display data except the first frame of display data, so as to obtain the video data in the RGB888 format.
As another aspect of the present invention, there is provided a motorcycle boot animation display control device for implementing the motorcycle boot animation display control method described above, including:
the system comprises an acquisition module, a storage module and a control module, wherein the acquisition module is used for acquiring a coding file, and the coding file is formed by compressing the upper computer according to boot animation data;
the decompression module is used for decompressing the data of the coding file to obtain boot animation data to be displayed;
and the sending module is used for sending the boot animation data to be displayed to a display screen for displaying.
As another aspect of the present invention, there is provided a motorcycle boot animation display system, comprising: the motorcycle starting animation display control device is in communication connection with the upper computer, the Flash, the SDRAM and the display screen are in communication connection with the motorcycle starting animation display control device,
the upper computer can compress to form a coding file according to the boot animation data;
the Flash is used for storing the coding file;
the motorcycle starting animation display control device can decompress the data of the coding file;
the display screen can realize startup animation display on the decompressed startup animation data to be displayed through the SDRAM.
Further, the motorcycle starting animation display control device comprises a single chip microcomputer.
According to the motorcycle boot animation display control method provided by the invention, the upper computer forms the coding file, the time for reading video data during boot can be reduced, the operation of a main control chip can be reduced by compressing the boot animation data through the combination of the LZ4 algorithm and the dirty rectangle algorithm, the time for drawing a picture for the first time is accelerated, in addition, the decoding is realized through the combination of the LZ4 algorithm and the dirty rectangle algorithm, and finally, the boot animation display is realized. The motorcycle starting animation display control method can shorten the time of displaying the starting animation on the motorcycle instrument to 200 milliseconds, and is low in implementation cost.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the principles of the invention and not to limit the invention. In the drawings:
FIG. 1 is a flow chart of a motorcycle boot animation display control method provided by the present invention.
Fig. 2 is a data block sequence format diagram generated by the LZ4 algorithm provided by the present invention.
FIG. 3 is an exemplary process diagram of the LZ4 algorithm compression algorithm provided by the present invention.
FIG. 4 is an exemplary diagram of the dirty rectangle algorithm provided by the present invention for generating differential data.
FIG. 5 is an exemplary diagram of generating animation data according to the dirty rectangle calculation provided by the present invention.
FIG. 6 is a graph comparing the LZ4 decompression algorithm used in the present invention with other algorithms.
FIG. 7 is a flow chart of compressing and decompressing the motorcycle instrument boot animation provided by the present invention.
Fig. 8 is a structural block diagram of the motorcycle boot animation display system provided by the present invention.
Detailed Description
It should be noted that the embodiments and features of the embodiments may be combined with each other without conflict. The present invention will be described in detail below with reference to the embodiments with reference to the attached drawings.
In order to make those skilled in the art better understand the technical solution of the present invention, the technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged under appropriate circumstances in order to facilitate the description of the embodiments of the invention herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
In this embodiment, a method for controlling display of motorcycle boot animation is provided, and fig. 1 is a flowchart of a method for controlling display of motorcycle boot animation according to an embodiment of the present invention, as shown in fig. 1, including:
s110, obtaining a coding file, wherein the coding file is formed by compressing the upper computer according to boot animation data;
specifically, the encoded file is formed by compressing the upper computer according to boot animation data, and includes:
the upper computer can compress the first frame of display picture data of the boot animation data through an LZ4 algorithm to form a first coding file;
the upper computer can sequentially generate difference data from each frame of display picture in the rest frame of display pictures except the first frame of display picture in the boot animation data and the previous frame of display picture through a dirty rectangle algorithm, and can compress the difference data through an LZ4 algorithm to form a second coding file;
the first encoded file and the second encoded file constitute the encoded file.
In the embodiment of the invention, the coding file is formed by compressing the upper computer through an algorithm, so that the time for reading video data when the motorcycle is started can be reduced, the operation of a main control chip on the motorcycle can be reduced through algorithm optimization, and smooth video playing can be realized on the main control chip of the motorcycle with weaker performance.
It should be noted that the conventional motorcycle instrument is generally lazy to the SRAM in the chip in the start-up animation scheme, but is limited by the capacity of the SRAM in the chip, so that a double buffer and triple buffer mechanism cannot be adopted, a dirty rectangle algorithm is not used, a local refresh function is not realized, and color space conversion needs to be performed on display data, so that a rapid drawing cannot be performed. According to the invention, an LZ4 algorithm and a dirty rectangle algorithm are adopted, the time for reading video data when starting is reduced by compressing a video file, the operation of a main control chip is reduced by algorithm optimization, the time for drawing a picture for the first time is shortened, and smooth video playing is realized on the main control chip with weaker performance. At present, the method shortens the time of displaying the boot animation on the motorcycle instrument to 200 milliseconds, and compared with the traditional boot time of 1.5 seconds, the boot time is improved by 700 percent.
Further specifically, the upper computer can compress the first frame of display image data of the boot animation data by an LZ4 algorithm to form a first encoded file, including:
the upper computer can compress a first frame of display picture data in an RGB888 format as a data processing stream through an LZ4 algorithm to obtain a first encoded file, wherein the LZ4 algorithm comprises the following steps: multiple LZ4 sequences in an LZ4 data block are compressed as duplicate data is encountered by scanning each shift of a unit byte.
In the embodiment of the invention, the first frame display picture data in the RGB888 format is taken as a data processing stream and compressed by using an LZ4 algorithm, and an LZ4 data block is composed of a plurality of LZ4 sequences. LZ4 sequence format as shown in fig. 2, the compression process uses at least 4 bytes as scanning window to search for match, each time moving one byte to scan, when repeating, the compression process is performed, the process is as shown in fig. 2, and the data processed by the LZ4 algorithm for the first frame of video source data is written into the coding file. The LZ4 compression process is shown in fig. 3.
Further specifically, the upper computer may generate difference data by sequentially performing a dirty rectangle algorithm on each of the remaining frames of display images excluding the first frame of display image in the boot animation data and the previous frame of display image, and may compress the difference data by performing an LZ4 algorithm to form a second encoded file, including:
the upper computer can compare the next frame of display picture in the rest frames of display pictures except the first frame of display picture in the boot animation data with the adjacent previous frame of display picture, and calculate to obtain the area of the next frame of display picture which is changed compared with the adjacent previous frame of display picture,
forming a corresponding list of the changed area, wherein the list records the coordinate position, the length and the width of the changed area of the display picture and the metadata information of the area change;
the list is compressed by the LZ4 algorithm to form a second encoded file.
In the embodiment of the invention, the display data of the next frame is compared with the display data of the previous frame, the changed area on the display data of the next frame is calculated and stored into a corresponding list, and the list records the metadata information of the marking position, the length, the width and the area change of the changed area of the data. As shown in fig. 4, the list area is a diff1 diff2 data area. And the diff1 diff2 data area is compressed by the LZ4 algorithm and written into the encoded file. And finally, converting the coding file into an array and compiling the array into a program.
S120, performing data decompression on the coded file to obtain boot animation data to be displayed;
specifically, the encoding file is decompressed frame by frame according to an LZ4 algorithm;
and carrying out differential operation on the decompressed data according to a dirty rectangle algorithm to obtain video data in an RGB888 format, wherein the video data in the RGB888 format is the boot animation data to be displayed.
More specifically, the decompressing the encoded file frame by frame according to LZ4 algorithm includes:
taking the first byte of the first LZ4 sequence in the LZ4 data block as the current operation position;
taking the current operation position as Token, and taking the data of the high four bits as the length of the literal sequence;
reading all the literal sequences according to the length of the literal sequences, and copying all the literal sequences to an output cache;
reading all matching sequences by the same method as reading the literal sequences, and copying all matching sequences to an output cache;
the above steps of reading all literal sequences are repeated until all LZ4 data blocks are decompressed.
Further specifically, the performing a differential operation on the decompressed data according to a dirty rectangle algorithm to obtain video data in an RGB888 format includes:
and (3) forming the next frame data by overlapping the differential data of the next frame on the basis of the previous frame for each frame of decompressed display data except the first frame of display data, so as to obtain the video data in the RGB888 format.
In the embodiment of the invention, after the motorcycle instrument is powered on, 150 frames of coded data containing boot animation in Flash are decompressed to an SDRAM (synchronous dynamic random access memory) position of an LCD three-buffer mechanism by using an LZ4 algorithm and a dirty rectangle algorithm in sequence by a main control chip, and an image is output to an LCD display screen by a display unit to realize a video animation display function.
Specifically, the specific implementation of the LZ4 decoding algorithm is roughly as follows:
(1) and taking the first byte of the first sequence of the Block as the current operation position in the data Block. And taking out the data of the upper four bits of the current operation position as the literal sequence length according to the current operation position as Token. If the resulting length is 15, then the bytes following Token are read, added to the literal sequence length until the read bytes are not 255.
(2) And reading all the literal sequences according to the length of the literal sequences, and copying the literal sequences into an output buffer. After the word-level sequence is 2 bytes of Offset, the matching position can be obtained by tracing the current position of the output buffer back by Offset bytes.
(3) The matching sequence length is then read in a similar manner as 2.
(4) The matching sequence is copied to the output buffer. Proceed with operation 2 unless this Block has been decompressed.
(5) And continuing to execute the operation 1 until all Block modules are decompressed.
The LZ4 decompression algorithm is the algorithm that is currently the fastest decompression speed, as shown in fig. 6. The application of the dirty rectangle algorithm in video display is shown in fig. 5, and the next frame of data is generated by overlapping the difference data of the next frame on the basis of the previous frame of data, so that the operation of a CPU is greatly reduced, the display smoothness is ensured, and the product requirement is met.
And S130, sending the boot animation data to be displayed to a display screen for displaying.
It should be understood that the boot animation data to be displayed is finally transmitted to the LCD display screen through the LCD display interface for displaying.
It should be noted that the LCD display interface adopts a triple buffer mechanism, and the roles of the three frame buffers (frame buffers) are: online frame buffer for storing the currently displayed frame buffer; the offline frame buffer is used for storing the currently drawn frame buffer; next frame buffer for storing the frame buffer ready for drawing, and switching to online frame buffer in the next cycle.
To sum up, the motorcycle boot animation display control method provided by the embodiment of the invention can reduce the time for reading video data during boot by forming the coding file through the upper computer, reduce the operation of the main control chip by compressing the boot animation data through the combination of the LZ4 algorithm and the dirty rectangle algorithm, accelerate the time for first plotting, and finally realize boot animation display by realizing decoding through the combination of the LZ4 algorithm and the dirty rectangle algorithm. The motorcycle starting animation display control method can shorten the time of displaying the starting animation on the motorcycle instrument to 200 milliseconds, and is low in implementation cost.
The following describes in detail the implementation process of the motorcycle boot animation display control method provided by the present invention with reference to specific examples.
Converting a starting animation (shunt rate 800 × 480, duration 5 seconds, RGB888 format) provided by a certain electric motorcycle factory into a coding file, and compiling into an instrument program; when the motorcycle instrument is powered on, the master control program reads the decompression coding file and plays the boot animation.
The LCD interface uses RGB888 format, each pixel needs 3 bytes, the data size of 150 frame data format is 800 × 480 × 3 × 150 = 165MB, in order to realize continuous playing in 5 seconds, the speed of reading animation needs at least 165MB/5s = 33MB/s, for the main control chip, the reading performance is difficult to satisfy, the storage space is wasted, and the hardware cost is increased. Therefore, the LZ4 algorithm and the dirty rectangle algorithm are used for processing the original data, and the data of the final boot animation only occupies 5.9MB of space, so that the reading time of the data and the hardware cost are greatly reduced.
As shown in fig. 7, the original data of the boot animation is processed on the upper computer to generate an encoded data file, and the encoded data file is compiled in a process sequence. The program is burnt into an external Flash through a program burning port JTAG of a main control chip, after a motorcycle instrument is electrified, the main control program initializes an LCD display controller, the main control program decodes boot animation data on the Flash to an LCD buffer zone machine, and an LCD display unit outputs images to an LCD display screen to realize a video animation display function.
As another embodiment of the present invention, there is provided a motorcycle boot animation display control device for implementing the motorcycle boot animation display control method described above, including:
the system comprises an acquisition module, a storage module and a control module, wherein the acquisition module is used for acquiring a coding file, and the coding file is formed by compressing the upper computer according to boot animation data;
the decompression module is used for decompressing the data of the coding file to obtain boot animation data to be displayed;
and the sending module is used for sending the boot animation data to be displayed to a display screen for displaying.
The specific working principle of the motorcycle starting animation display control device according to the embodiment of the present invention can refer to the description of the motorcycle starting animation display control method, and the details are not repeated herein.
As another embodiment of the present invention, there is provided a motorcycle boot animation display system, as shown in fig. 8, including: the motorcycle starting animation display control device is in communication connection with the upper computer, the Flash, the SDRAM and the display screen are in communication connection with the motorcycle starting animation display control device,
the upper computer can compress to form a coding file according to the boot animation data;
the Flash is used for storing the coding file;
the motorcycle starting animation display control device can decompress the data of the coding file;
the display screen can realize startup animation display on the decompressed startup animation data to be displayed through the SDRAM.
It should be understood that the motorcycle starting animation display control device is the aforementioned main control chip, and may be specifically a single chip microcomputer.
It should be understood that the host computer can process the input boot video image by a coding algorithm (specifically, the LZ4 algorithm may be used) to obtain a coding file, and then compile the coding file to obtain a compiler program, where the compiler program can be directly downloaded by the motorcycle boot animation display control device, that is, by the main control chip. Specifically, the processes of decompressing the motorcycle boot animation display control device after downloading may refer to the description of the motorcycle boot animation display control method, and are not described herein again.
Preferably, the master control chip system can be designed by adopting RT1052 of NXP corporation as a master control chip, and a FreeRTOS operating system is run on the master control chip, which supports multitask scheduling and is used for running driving and boot animation, instrument service functions and HMI software.
The main control chip in the embodiment of the invention can be internally provided with a JTAG interface for burning the program into Flash, the Flash is used for storing the program and the boot animation video coding file, the SDRAM is used for running the program and storing boot animation data, and the LCD display screen is used for displaying the boot animation.
The working principle of the motorcycle boot animation display system provided by the embodiment of the invention can refer to the description of the motorcycle boot animation display control method, and the description is omitted here.
It will be understood that the above embodiments are merely exemplary embodiments taken to illustrate the principles of the present invention, which is not limited thereto. It will be apparent to those skilled in the art that various modifications and improvements can be made without departing from the spirit and substance of the invention, and these modifications and improvements are also considered to be within the scope of the invention.

Claims (10)

1. A motorcycle starting animation display control method is characterized by comprising the following steps:
acquiring a coding file, wherein the coding file is formed by compressing the upper computer according to boot animation data;
performing data decompression on the encoded file to obtain boot animation data to be displayed;
and sending the boot animation data to be displayed to a display screen for displaying.
2. The motorcycle boot animation display control method according to claim 1, wherein the encoded file is formed by compressing boot animation data by an upper computer, and includes:
the upper computer can compress the first frame of display picture data of the boot animation data through an LZ4 algorithm to form a first coding file;
the upper computer can sequentially generate difference data from each frame of display picture in the rest frame of display pictures except the first frame of display picture in the boot animation data and the previous frame of display picture through a dirty rectangle algorithm, and can compress the difference data through an LZ4 algorithm to form a second coding file;
the first encoded file and the second encoded file constitute the encoded file.
3. The motorcycle boot animation display control method according to claim 2, wherein the upper computer is capable of compressing first frame display picture data of the boot animation data by an LZ4 algorithm to form a first encoded file, and includes:
the upper computer can compress a first frame of display picture data in an RGB888 format as a data processing stream through an LZ4 algorithm to obtain a first encoded file, wherein the LZ4 algorithm comprises the following steps: multiple LZ4 sequences in an LZ4 data block are compressed as duplicate data is encountered by scanning each shift of a unit byte.
4. The motorcycle boot animation display control method according to claim 2, wherein the upper computer is capable of generating difference data by a dirty rectangle algorithm for each of the remaining frames of display images excluding the first frame of display image in the boot animation data and the previous frame of display image in sequence, and compressing the difference data by an LZ4 algorithm to form a second encoded file, and the method includes:
the upper computer can compare the next frame of display picture in the rest frames of display pictures except the first frame of display picture in the boot animation data with the adjacent previous frame of display picture, and calculate to obtain the area of the next frame of display picture which is changed compared with the adjacent previous frame of display picture,
forming a corresponding list of the changed area, wherein the list records the coordinate position, the length and the width of the changed area of the display picture and the metadata information of the area change;
the list is compressed by the LZ4 algorithm to form a second encoded file.
5. The motorcycle boot animation display control method according to claim 1, wherein the decompressing the encoded file to obtain the boot animation data to be displayed includes:
decompressing the encoded file frame by frame according to LZ4 algorithm;
and carrying out differential operation on the decompressed data according to a dirty rectangle algorithm to obtain video data in an RGB888 format, wherein the video data in the RGB888 format is the boot animation data to be displayed.
6. The motorcycle boot animation display control method of claim 5, wherein the decompressing the encoded file frame by frame according to the LZ4 algorithm comprises:
taking the first byte of the first LZ4 sequence in the LZ4 data block as the current operation position;
taking the current operation position as Token, and taking the data of the high four bits as the length of the literal sequence;
reading all the literal sequences according to the length of the literal sequences, and copying all the literal sequences to an output cache;
reading all matching sequences by the same method as reading the literal sequences, and copying all matching sequences to an output cache;
the above steps of reading all literal sequences are repeated until all LZ4 data blocks are decompressed.
7. The motorcycle boot animation display control method of claim 5, wherein the performing a differential operation on the decompressed data according to a dirty rectangle algorithm to obtain video data in an RGB888 format comprises:
and (3) forming the next frame data by overlapping the differential data of the next frame on the basis of the previous frame for each frame of decompressed display data except the first frame of display data, so as to obtain the video data in the RGB888 format.
8. A motorcycle boot animation display control device for realizing the motorcycle boot animation display control method according to any one of claims 1 to 7, characterized by comprising:
the system comprises an acquisition module, a storage module and a control module, wherein the acquisition module is used for acquiring a coding file, and the coding file is formed by compressing the upper computer according to boot animation data;
the decompression module is used for decompressing the data of the coding file to obtain boot animation data to be displayed;
and the sending module is used for sending the boot animation data to be displayed to a display screen for displaying.
9. A motorcycle boot animation display system, comprising: an upper computer, a Flash, an SDRAM, a display screen and the motorcycle starting animation display control device of claim 8, wherein the motorcycle starting animation display control device is in communication connection with the upper computer, the Flash, the SDRAM and the display screen are in communication connection with the motorcycle starting animation display control device,
the upper computer can compress to form a coding file according to the boot animation data;
the Flash is used for storing the coding file;
the motorcycle starting animation display control device can decompress the data of the coding file;
the display screen can realize startup animation display on the decompressed startup animation data to be displayed through the SDRAM.
10. A motorcycle start-up animation display system as claimed in claim 9, wherein the motorcycle start-up animation display control means includes a single chip microcomputer.
CN202111262320.0A 2021-10-28 2021-10-28 Motorcycle starting animation display control method, control device and display system Pending CN113986174A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111262320.0A CN113986174A (en) 2021-10-28 2021-10-28 Motorcycle starting animation display control method, control device and display system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111262320.0A CN113986174A (en) 2021-10-28 2021-10-28 Motorcycle starting animation display control method, control device and display system

Publications (1)

Publication Number Publication Date
CN113986174A true CN113986174A (en) 2022-01-28

Family

ID=79743306

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111262320.0A Pending CN113986174A (en) 2021-10-28 2021-10-28 Motorcycle starting animation display control method, control device and display system

Country Status (1)

Country Link
CN (1) CN113986174A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114640872A (en) * 2022-04-13 2022-06-17 中国第一汽车股份有限公司 Boot animation display method, device, equipment and medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000278644A (en) * 1999-03-23 2000-10-06 Canopus Co Ltd Nonlinear video edit device and its method
CN1882084A (en) * 2005-06-14 2006-12-20 吕殿伟 Cartoon compression method for wireless network and wireless hand-held apparatus
CN101221666A (en) * 2008-01-16 2008-07-16 嘉兴闻泰通讯科技有限公司 Cartoon compression and decompression method based on wireless handhold equipment
CN110738975A (en) * 2019-11-11 2020-01-31 延锋伟世通电子科技(南京)有限公司 method for quickly displaying boot animation of full liquid crystal instrument
CN111294053A (en) * 2018-12-06 2020-06-16 英韧科技(上海)有限公司 Hardware-friendly data compression method, system and device
CN112399154A (en) * 2020-11-04 2021-02-23 深圳市大象视界科技有限公司 Video image transmission method based on compression coding and LED display screen control system
CN112929590A (en) * 2021-02-05 2021-06-08 广东欧谱曼迪科技有限公司 Boot animation playing system, compression method and device, and decompression method and device
CN113038137A (en) * 2021-03-09 2021-06-25 深圳市东微智能科技股份有限公司 Video data output method, system, device and computer readable storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000278644A (en) * 1999-03-23 2000-10-06 Canopus Co Ltd Nonlinear video edit device and its method
CN1882084A (en) * 2005-06-14 2006-12-20 吕殿伟 Cartoon compression method for wireless network and wireless hand-held apparatus
CN101221666A (en) * 2008-01-16 2008-07-16 嘉兴闻泰通讯科技有限公司 Cartoon compression and decompression method based on wireless handhold equipment
CN111294053A (en) * 2018-12-06 2020-06-16 英韧科技(上海)有限公司 Hardware-friendly data compression method, system and device
CN110738975A (en) * 2019-11-11 2020-01-31 延锋伟世通电子科技(南京)有限公司 method for quickly displaying boot animation of full liquid crystal instrument
CN112399154A (en) * 2020-11-04 2021-02-23 深圳市大象视界科技有限公司 Video image transmission method based on compression coding and LED display screen control system
CN112929590A (en) * 2021-02-05 2021-06-08 广东欧谱曼迪科技有限公司 Boot animation playing system, compression method and device, and decompression method and device
CN113038137A (en) * 2021-03-09 2021-06-25 深圳市东微智能科技股份有限公司 Video data output method, system, device and computer readable storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114640872A (en) * 2022-04-13 2022-06-17 中国第一汽车股份有限公司 Boot animation display method, device, equipment and medium
CN114640872B (en) * 2022-04-13 2023-09-26 中国第一汽车股份有限公司 Startup animation display method, device, equipment and medium

Similar Documents

Publication Publication Date Title
CN108010112B (en) Animation processing method, device and storage medium
CN109600666B (en) Video playing method, device, medium and electronic equipment in game scene
CN112235604B (en) Rendering method and device, computer readable storage medium and electronic device
US9715718B2 (en) Image processing device, image processing system, image processing method, and computer program for effecting changes in a selected display region
JP4889573B2 (en) Image processing device
JP2005045357A (en) Remote display protocol, video display system, and terminal
US9055272B2 (en) Moving image reproduction apparatus, information processing apparatus, and moving image reproduction method
TWI441091B (en) Method for performing image signal processing with aid of a graphics processing unit and apparatus for performing image signal processing
CN113986174A (en) Motorcycle starting animation display control method, control device and display system
CN110049347B (en) Method, system, terminal and device for configuring images on live interface
JP2009129448A (en) Data processing apparatus, data processing method, and data processing system
JP2000106677A (en) Compression stream decoder and compression stream decoding method
CN102479387A (en) Method for generating multimedia animation and playing multimedia animation and apparatus thereof
JP7017542B2 (en) Video decoding device and video decoding method
CN114820318A (en) Wallpaper display method and device, electronic equipment and readable storage medium
JP2000148134A (en) Image display method and image processing device
CN110930480B (en) Method for directly rendering startup animation video of liquid crystal instrument
KR100738916B1 (en) Method for saving display picture of executive video contents on embedded system
KR20210125403A (en) Method for reducing communication load through lossless data reduction, apparatus and storage medium
JPH10126781A (en) Decoder
JP2002223389A (en) Device and method for compositing moving images
CN115861499B (en) Playing method, playing device, equipment and medium for sequence frame animation
CN111355981B (en) Video data playing method and device, storage medium and electronic equipment
JPH07311568A (en) Method and device for outputting image
JP2001103427A (en) Compressed image reproducing device and program recording medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination