CN118124382A - Picture display method, device, equipment, storage medium and product of vehicle instrument - Google Patents

Picture display method, device, equipment, storage medium and product of vehicle instrument Download PDF

Info

Publication number
CN118124382A
CN118124382A CN202410277643.4A CN202410277643A CN118124382A CN 118124382 A CN118124382 A CN 118124382A CN 202410277643 A CN202410277643 A CN 202410277643A CN 118124382 A CN118124382 A CN 118124382A
Authority
CN
China
Prior art keywords
picture
starting
display
startup
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
CN202410277643.4A
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.)
Ecarx Hubei Tech Co Ltd
Original Assignee
Ecarx Hubei Tech 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 Ecarx Hubei Tech Co Ltd filed Critical Ecarx Hubei Tech Co Ltd
Priority to CN202410277643.4A priority Critical patent/CN118124382A/en
Publication of CN118124382A publication Critical patent/CN118124382A/en
Pending legal-status Critical Current

Links

Landscapes

  • Fittings On The Vehicle Exterior For Carrying Loads, And Devices For Holding Or Mounting Articles (AREA)

Abstract

The application provides a picture display method, device, equipment, storage medium and product of a vehicle instrument, and relates to the technical field of computers. The vehicle instrument carries a Linux operating system, and the method comprises the following steps: loading a display driver in response to the completion of the initialization of the frame buffer of the display device in the kernel mode of the Linux operating system; running a display driver to control a first boot-up picture to be displayed when kernel mode is started to be displayed in a vehicle instrument; and controlling to display a second starting picture to be displayed when the user state starts in the vehicle instrument in response to the fact that the user state of the Linux operating system starts to start. The application realizes that the picture displayed in the kernel starting stage and the picture displayed in the user state starting stage are not perceived excessively, reduces the black screen time and improves the user experience.

Description

Picture display method, device, equipment, storage medium and product of vehicle instrument
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method, an apparatus, a device, a storage medium, and a product for displaying a picture of a vehicle instrument.
Background
Linux is used as a general operating system of free and open source codes, and is increasingly applied to the field of intelligent cabins of vehicles, not only because of its open source, but also because of its excellent performance, huge communities and flexibility of function customization. The Linux system is used as an operating system for displaying the vehicle instrument, and plays an important role in the field of intelligent cabins.
However, in the vehicle instrument display control, compared with the conventional QNX system, the Linux system has a relatively slow start speed. And the Linux is used for driving the instrument display, so that the black screen time is long after the vehicle instrument system is electrified, the visual effect is poor, and the user experience is greatly reduced.
Disclosure of Invention
The application provides a picture display method, device, equipment, storage medium and product of a vehicle instrument, which are used for solving the problems that after a vehicle instrument system is electrified, a startup picture can be displayed only after a long time is needed, the black screen time is long, and the user experience is poor in the prior art.
In a first aspect, the present application provides a method for displaying a screen of a vehicle meter, where the vehicle meter carries a Linux operating system, including:
loading a display driver in response to the completion of the initialization of the frame buffer of the display device in the kernel mode of the Linux operating system;
running the display driver to control a first boot image to be displayed when kernel mode is started to be displayed in a vehicle instrument;
and in response to the detection that the user mode of the Linux operating system starts to start, controlling a second starting picture to be displayed when the user mode starts to be displayed in the vehicle instrument, wherein the second starting picture is associated with the first starting picture.
In one possible design, the running the display driver to control the display of the first boot-up screen to be displayed when the kernel mode is started in the vehicle meter includes:
when the display driver is operated, driving a program preset in the display driver and used for controlling the display of a first starting picture to operate;
And acquiring the pre-stored first starting picture from a kernel drive catalog of the display driver based on the program for controlling the display of the first starting picture, and controlling the display of the first starting picture in a vehicle instrument.
In one possible design, when the display driver is running, the driving unit is configured to drive, before running a program preset in the display driver for controlling to display the first boot image, the driving unit further includes:
Acquiring an initial startup animation;
obtaining the first starting picture and the second starting picture based on the initial starting animation;
storing the first starting picture in a kernel drive catalog of the display driver;
And storing the second starting picture in the user mode drive catalog.
In one possible design, before the storing the first boot picture in the kernel driver catalog of the display driver, the method further includes:
Judging whether the storage format of the first starting picture is a set storage format or not;
if not, converting the first starting picture into a picture with a set storage format so as to obtain a converted first starting picture.
In one possible design, the first boot image is a first frame image of the initial boot animation, and the second boot image is the initial boot animation.
In one possible design, the obtaining the first boot picture based on the initial boot animation includes:
Intercepting a first frame image of the initial startup animation by adopting a multimedia file encoder, and converting the first frame image into an image in a first format so as to obtain a first startup picture;
the converting the first startup picture into a picture with a set storage format to obtain a converted first startup picture includes:
and converting the first frame image into an image with a set storage format by adopting a preset conversion tool so as to obtain a converted first starting picture.
In one possible design, the obtaining the first boot picture and the second boot picture based on the initial boot animation includes:
determining the kernel mode starting time and the user mode starting time; the kernel mode starting time is the time between the completion of frame buffer initialization of the display equipment and the completion of kernel mode starting;
Performing up-sampling processing on the initial startup animation based on the kernel mode startup time length and the user mode startup time length to obtain the up-sampled initial startup animation; the display duration of the initial startup animation after the up-sampling processing is equal to the sum of the kernel mode startup duration and the user mode startup duration;
Cutting the initial startup animation after the up-sampling processing according to the ratio of the kernel mode startup time length to the user mode startup time length;
determining the front part of the cut starting animation conforming to the kernel mode starting time length as a first starting picture;
and determining the cut rear part of the startup animation conforming to the user state startup time length as a second startup picture.
In a second aspect, the present application provides a screen display device of a vehicle instrument, comprising:
the loading module is used for loading a display driver in response to the fact that the initialization of the frame buffer of the display device in the kernel mode of the Linux operating system is finished;
The running module is used for running the display driver program to control the first starting picture to be displayed when kernel mode starting is displayed in the vehicle instrument;
And the control module is used for responding to the detection that the user mode of the Linux operating system starts to start, and controlling a second starting picture to be displayed when the user mode starts in the vehicle instrument, wherein the second starting picture is associated with the first starting picture.
In a third aspect, the present application provides a vehicle meter comprising: a processor, and a memory and an output device communicatively connected to the processor;
The memory stores computer-executable instructions; the output device is used for displaying a first starting picture and a second starting picture under the control of the processor;
the processor executes computer-executable instructions stored in the memory to implement the method of any one of the first aspects.
In a fourth aspect, the present application provides a computer-readable storage medium having stored therein computer-executable instructions for performing the method of any of the first aspects when executed by a processor.
In a fifth aspect, the application provides a computer program product comprising a computer program which, when executed by a processor, implements the method of any of the first aspects.
According to the picture display method, the picture display device, the picture display equipment, the picture display storage medium and the picture display product of the vehicle instrument, provided by the application, the display driver is loaded by displaying the completion of the frame buffer initialization of the equipment in the kernel mode of the Linux operating system; running the display driver to control a first boot image to be displayed when kernel mode is started to be displayed in a vehicle instrument; and in response to the detection that the user mode of the Linux operating system starts to start, controlling a second starting picture to be displayed when the user mode starts to be displayed in the vehicle instrument, wherein the second starting picture is associated with the first starting picture. When the frame buffer initialization of the display equipment in the kernel mode of the Linux operating system is monitored, a display driving program is loaded, and the display driving program is operated to control the display of a first starting picture to be displayed in the kernel mode in the vehicle instrument, so that pictures can be displayed in the kernel mode starting stage, the black screen time is reduced, when the user mode starting of the Linux operating system is monitored, a second starting picture to be displayed in the user mode starting is controlled to be displayed in the vehicle instrument, the second starting picture is associated with the first starting picture, the non-perception transition between the display picture in the kernel mode starting stage and the display picture in the user mode stage is realized, and the user experience is improved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description, serve to explain the principles of the application.
Fig. 1 is a schematic diagram of a change in a display screen of a vehicle instrument corresponding to each stage of a screen display method of the vehicle instrument according to an embodiment of the present application;
FIG. 2 is a flowchart illustrating a method for displaying a frame of a vehicle meter according to an embodiment of the present application;
FIG. 3 is a flowchart illustrating a method for displaying a frame of a vehicle meter according to another embodiment of the present application;
fig. 4 is a schematic structural diagram of a screen display device of a vehicle meter according to an embodiment of the application;
fig. 5 is a schematic structural diagram of a vehicle meter according to an embodiment of the application.
Specific embodiments of the present application have been shown by way of the above drawings and will be described in more detail below. The drawings and the written description are not intended to limit the scope of the inventive concepts in any way, but rather to illustrate the inventive concepts to those skilled in the art by reference to the specific embodiments.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the application. Rather, they are merely examples of apparatus and methods consistent with aspects of the application as detailed in the accompanying claims.
It should be noted that, the user information (including but not limited to user equipment information, user personal information, etc.) and the data (including but not limited to data for analysis, stored data, presented data, etc.) related to the present application are information and data authorized by the user or fully authorized by each party, and the collection, use and processing of the related data need to comply with the related laws and regulations and standards of the related country and region, and provide corresponding operation entries for the user to select authorization or rejection.
For a clear understanding of the technical solutions of the present application, the prior art solutions will be described in detail first.
At present, the Linux system is used as an operating system and the number of vehicle instruments is not counted, so that not only is the Linux system used as a complete operating system, but also an MMU (memory management unit) can be realized, an application layer and a system layer can be separated, and software at the two layers can be respectively protected, and therefore, even if a certain module of the application layer crashes, the running of other modules and system kernels can not be influenced. However, compared with the traditional QNX system, the Linux starting speed is relatively low, in the kernel starting stage, the instrument backlight is lightened, but only a bright black screen is displayed, the Linux kernel is required to be completely started, the user state program is required to be started, the starting animation program is executed, the black screen time is long, the visual effect is poor, and the user experience is greatly reduced.
Therefore, when the technical problems in the prior art are faced, in order to reduce the black screen time, the picture displayed in the kernel start stage and the picture displayed in the user state stage are not perceived excessively, the first starting picture is displayed when the kernel state is started, the second starting picture is displayed when the user state is started after the kernel state is started, and the second starting picture is associated with the first starting picture. When the frame buffer initialization of the display equipment in the kernel mode of the Linux operating system is monitored, a display driving program is loaded, and then the display driving program is operated to control the display of a first starting picture to be displayed in the kernel mode in the vehicle instrument, so that the vehicle instrument can display the picture in the kernel mode starting stage to reduce the black screen time, the first starting picture displayed by the display driving program is associated with the user mode starting of the Linux operating system, the display of a second starting picture to be displayed in the user mode starting stage in the vehicle instrument is controlled, the picture displayed in the kernel starting stage is not perceived excessively with the picture displayed in the user mode stage, and the user experience is improved.
Fig. 1 is a schematic diagram of a change of a display screen of a vehicle instrument corresponding to each stage of a screen display method of the vehicle instrument according to an embodiment of the present application, as shown in fig. 1, after the vehicle instrument is powered on, a kernel mode of a Linux operating system is started first, and a vehicle instrument output device is turned on, that is, the vehicle instrument displays a bright black screen 101. In the process of starting in the kernel mode, when the frame buffer initialization of the display equipment in the kernel mode of the Linux operating system is detected, a display driver is loaded, and when the display driver is operated, the first starting-up picture 102 is controlled to be displayed in the vehicle instrument, so that the vehicle instrument output device is switched from the bright black screen 101 to the first starting-up picture 102. After the kernel state is started, the user state of the Linux operating system is started, and when the user state of the Linux operating system is monitored to start starting, the display of the second starting picture 103 in the vehicle instrument is controlled, namely the vehicle instrument output device is switched from the first starting picture 102 to the second starting picture 103. And the second startup picture 103 is associated with the first startup picture 102, so that not only can the black screen time be reduced, but also the picture displayed in the kernel startup stage and the picture displayed in the user mode stage are not perceived excessively.
The following describes the technical scheme of the present application and how the technical scheme of the present application solves the above technical problems in detail with specific embodiments. The following embodiments may be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments. Embodiments of the present application will be described below with reference to the accompanying drawings.
Fig. 2 is a flowchart of a method for displaying a screen of a vehicle meter according to an embodiment of the present application, as shown in fig. 2, an execution subject of the present embodiment is a device for displaying a screen of a vehicle meter, where the device for displaying a screen of a vehicle meter may be implemented by a computer program, or may be implemented by a medium storing a relevant computer program, for example, a usb disk and/or an optical disk; or may also be implemented by means of physical means, e.g. chips, electronic devices, etc., integrated or installed with a related computer program. The electronic device may be a vehicle instrument, and the method for displaying a picture of the vehicle instrument provided in the embodiment includes the following steps:
step 201, in response to monitoring that the initialization of the frame buffer of the display device in the kernel mode of the Linux operating system is completed, loading the display driver.
The display device frame buffer is a virtual device in the linux kernel, and the content of the display device frame buffer corresponds to interface display on a vehicle instrument screen.
Specifically, in a vehicle instrument using a Linux system as an operating system, after the vehicle instrument is powered on, bootloader codes are first required to be run, bootloader codes are run to load kernels, and hardware such as a memory, a disk and the like is initialized to prepare for booting the kernel mode of the Linux. And then starting the kernel state, initializing a display device frame buffer driving frame by the kernel, and after the initialization of the display device frame buffer is finished, determining that the loading condition of the display driving program is met and starting to load the display driving program.
Specifically, when the display driver is loaded, the corresponding command can be executed to read the display driver from the storage position to the memory, so that the loading of the display driver is completed.
Wherein, the display driver may be called a Bootup logo. The Bootup logo program is a driver program specially used for displaying images or videos in a Linux operating system.
Step 202, a display driver is operated to control a first boot-up screen to be displayed when kernel mode is started to be displayed in a vehicle instrument.
The first startup picture is a picture to be displayed when the kernel mode is started. The first boot-strap picture may be a multi-frame continuous image or a single-frame image type. Alternatively, the first boot image may be a first frame image of a boot animation, or a front portion of the boot animation that conforms to a kernel mode boot duration, or other images associated with the second boot image, which is not limited in this embodiment.
Wherein, the startup animation is composed of a plurality of continuous images.
Specifically, after the display driver is loaded into the memory, the display driver starts to run, when the display driver runs, a storage position of a first starting picture to be displayed when the kernel state is started is configured in the display driver in advance, and after the first starting picture is acquired from the storage position, the output device of the vehicle instrument is controlled to display the first starting picture.
It is understood that the output device switches the black screen with brightness to the first starting-up screen when the first starting-up screen is displayed.
In step 203, in response to the detection that the user mode of the Linux operating system starts to be started, a second boot-up screen to be displayed when the user mode starts is controlled to be displayed in the vehicle instrument, and the second boot-up screen is associated with the first boot-up screen.
The second startup picture is a picture to be displayed when the user state starts. The second boot-strap picture may be a plurality of consecutive images. Alternatively, the second boot image may be a boot animation, or a rear portion of the boot animation that accords with the user state boot duration, or another image associated with the first boot image, which is not limited in this embodiment.
Specifically, in the kernel mode starting process, after the display driver is operated to display the first starting picture, the kernel mode starting is not completed, at this time, the first starting picture is always displayed on the vehicle instrument screen, and until the kernel mode starting is completed, the user mode of the Linux operating system is monitored to start, then the user mode is controlled to display the second starting picture.
According to the picture display method of the vehicle instrument, after the frame buffer initialization of the display equipment is finished in the kernel mode of the Linux operating system is monitored, a display driver is loaded; running a display driver to control a first boot-up picture to be displayed when kernel mode is started to be displayed in a vehicle instrument; and in response to the detection that the user mode of the Linux operating system starts to be started, controlling a second starting picture to be displayed when the user mode starts to be displayed in the vehicle instrument, wherein the second starting picture is associated with the first starting picture. When the frame buffer initialization of the display equipment in the kernel mode of the Linux operating system is monitored, a display driving program is loaded, and the display driving program is operated to control the display of a first starting picture to be displayed in the kernel mode in the vehicle instrument, so that pictures can be displayed in the kernel mode starting stage, the black screen time is reduced, when the user mode starting of the Linux operating system is monitored, a second starting picture to be displayed in the user mode starting is controlled to be displayed in the vehicle instrument, the second starting picture is associated with the first starting picture, the non-perception transition of the display picture in the kernel mode starting stage and the display picture in the user mode stage is realized, and the user experience is improved.
As an optional implementation manner, on the basis of the foregoing embodiment, the running of the display driver to control to display, in the vehicle meter, a first boot screen to be displayed when the kernel mode is started includes:
when a display driver is operated, driving a program preset in the display driver and used for controlling the display of a first starting picture to operate;
and acquiring the pre-stored first starting picture from the kernel drive catalog of the display drive program based on the program for controlling the display of the first starting picture, and controlling the display of the first starting picture in the vehicle instrument.
Specifically, a program for controlling the display of the first boot image is preconfigured in the display driver, when the display driver is operated, the program preset in the display driver for controlling the display of the first boot image is driven to operate, and in the process of operating the program for controlling the display of the first boot image, the first boot image stored in advance is firstly required to be obtained from a kernel driving catalog of the display driver, and then the vehicle instrument is controlled to display the first boot image according to a program instruction.
The display driver is preset with a program for controlling the display of the first startup picture, and when the program for controlling the display of the first startup picture is configured, the method specifically comprises the following steps: storing the first starting-up picture into a drive catalog based on the position of the display drive catalog, configuring a path for storing the first starting-up picture into a program for controlling the display of the first starting-up picture, adding the program for controlling the display of the first starting-up picture into an original display driving program, compiling the added display driving program to form an executable display driving program, and completing the configuration of the program for controlling the display of the first starting-up picture.
Optionally, in order to further reduce the black screen time, the storage format of the first boot picture should be a decoded format, so as to avoid calculating the decoding occupation time in the display process.
The method for displaying the picture of the vehicle instrument provided by the embodiment runs the display driver to control the display of the first starting picture to be displayed when the kernel mode is started in the vehicle instrument, and comprises the following steps: when a display driver is operated, driving a program preset in the display driver and used for controlling the display of a first starting picture to operate; and acquiring the pre-stored first starting picture from the kernel drive catalog of the display drive program based on the program for controlling the display of the first starting picture, and controlling the display of the first starting picture in the vehicle instrument. Since the first boot-up screen is already stored in the display drive catalog in advance, data preparation can be made for running the program for displaying the first boot-up screen. And a program for controlling the display of the first starting-up picture is pre-configured in the display driving program, so that the program for controlling the display of the first starting-up picture can be smoothly operated only by operating the display driving program, further the display of the first starting-up picture in the vehicle instrument is successfully realized, and when the first starting-up picture needs to be adjusted, only the first starting-up picture pre-stored in the driving catalog is required to be updated, and the display driving program is not required to be modified again.
As an optional implementation manner, on the basis of any one of the foregoing embodiments, when the display driver is running, before the program preset in the display driver for controlling to display the first boot screen is run, the method further includes:
Acquiring an initial startup animation;
Obtaining a first starting picture and a second starting picture based on the initial starting animation;
Storing the first boot image in a kernel driver catalog of the display driver;
the second boot-strap picture is stored in the user-mode drive directory.
The initial startup animation is composed of multiple continuous images, any existing startup animation can be selected according to the requirement, or the initial startup animation is self-made, and the embodiment is not limited to the above.
Specifically, before the display driver is run, an initial boot animation is obtained, and then a first boot animation and a second boot animation are obtained based on the initial boot animation. When the first starting-up picture is obtained based on the initial starting-up animation, the ffmpeg command can be used for carrying out frame lifting processing on the initial starting-up animation so as to obtain the first starting-up picture, and the first starting-up picture can be a single-frame image associated with the initial starting-up animation; or cutting the initial startup animation according to the kernel mode startup time length, so as to obtain a first startup picture, wherein the first startup picture can be the front initial startup animation which accords with the kernel mode startup time length.
It is understood that, as for the manner of obtaining the first boot image, other manners are also possible, which is not limited in this embodiment.
When the second starting-up picture is obtained based on the initial starting-up animation, the second starting-up picture can be determined based on the type of the first starting-up picture, and if the first starting-up picture is a single frame image associated with the initial starting-up animation, the second starting-up picture can be the initial starting-up animation; or when the first starting-up picture is the front part of the initial starting-up animation conforming to the kernel mode starting time length, the initial starting-up animation can be cut according to the user mode starting time length, so as to obtain a second starting-up picture, and at the moment, the second starting-up picture can be the rear part of the initial starting-up animation conforming to the user mode starting time length.
It is understood that the second boot image may be obtained in other manners, which is not limited in this embodiment.
After the first starting-up picture and the second starting-up picture are obtained, the first starting-up picture is stored in a kernel driving catalog of the display driving program, and the second starting-up picture is stored in a user-state driving catalog.
The method for displaying a screen of a vehicle instrument provided in this embodiment, when running a display driver, drives a program preset in the display driver for controlling to display a first boot screen, and further includes: acquiring an initial startup animation; obtaining a first starting picture and a second starting picture based on the initial starting animation; storing the first boot image in a kernel driver catalog of the display driver; the second boot-strap picture is stored in the user-mode drive directory. Because the first starting animation and the second starting animation are obtained based on the initial starting animation, the first starting animation and the second starting animation have relevance, pictures displayed during kernel mode starting and user mode starting are consecutive and orderly, user experience is improved, the first starting picture and the second starting picture are stored in designated positions in advance, and data preparation is made for running a program for displaying the first starting picture and a program for displaying the second starting picture.
As an optional implementation manner, before storing the first boot image in the kernel driver directory of the display driver on the basis of any one of the foregoing embodiments, the method further includes: judging whether the storage format of the first starting picture is a set storage format or not; if not, converting the first starting picture into a picture with a set storage format so as to obtain a converted first starting picture.
Specifically, before the first boot image is stored in the kernel driver catalog of the display driver, the storage format of the first boot image needs to be checked first to determine whether the first boot image is in a set storage format, and if the first boot image is not in the set storage format, the first boot image needs to be converted into the set storage format to obtain the converted first boot image.
Specifically, the storage format of the first startup picture can be determined by the extension of the first picture, so as to determine whether the first startup picture is a picture with a set storage format. If not, the conversion tool can be adopted to convert the storage format of the first starting-up picture into the set storage format, and then the picture with the set storage format is obtained.
The conversion tool may be Photoshop or FormatFactory, or other conversion tools, which is not limited in this embodiment.
The method for displaying a screen of a vehicle instrument provided in this embodiment further includes, before storing the first boot image in a kernel driver catalog of a display driver: judging whether the storage format of the first starting picture is a set storage format or not; if not, converting the first starting picture into a picture with a set storage format so as to obtain a converted first starting picture. The first picture is converted into the set storage format, decoding is not needed when the first starting picture is controlled to be displayed, the display speed is higher, and the black screen time is shortened.
As an optional implementation manner, on the basis of any one of the foregoing embodiments, the first boot image is a first frame image of an initial boot animation, and the second boot image is the initial boot animation.
Specifically, a first frame image of the initial startup animation is extracted and used as a first startup picture, and the initial startup animation is used as a second startup picture.
The first frame image may process the initial startup animation in a frame lifting manner to obtain the first frame image, or may process the initial startup animation in other manners that may obtain the first frame image, which is not limited in this embodiment.
In the method for displaying the images of the vehicle instrument provided by the embodiment, the first starting-up image is the first frame image of the initial starting-up animation, and the second starting-up image is the initial starting-up animation. The first frame image of the initial starting-up animation is used as the first starting-up picture, so that a seamless joint feeling can be visually given to people when the second starting-up picture is played, and the user experience is further improved.
As an optional implementation manner, on the basis of any one of the foregoing embodiments, obtaining the first boot image based on the initial boot animation includes:
Intercepting a first frame image of an initial startup animation by adopting a multimedia file encoder, and converting the first frame image into an image in a first format so as to obtain a first startup picture;
Converting the first startup picture into a picture with a set storage format to obtain a converted first startup picture, wherein the method comprises the following steps:
and converting the first frame image into an image with a set storage format by adopting a preset conversion tool so as to obtain a converted first starting picture.
The first format may be png format, or other formats meeting the first boot image requirement, which is not limited in this embodiment.
Specifically, taking the initial boot animation in the MJPEG format as an example, the ffmpeg command may be used to intercept the first frame image of the initial boot animation and convert the first frame image into the png format image, thereby obtaining the first boot image. And converting the image into a ppm image with a set storage format by a png conversion tool and the like, thereby obtaining a converted first starting picture.
The set storage format may be an ASCII storage format or other decoded storage formats, which is not limited in this embodiment, so as to avoid reducing the display speed due to decoding when displaying the picture.
Wherein, the ffmpeg command is a free open program library, a command line tool software, which is specially used for editing and processing various multimedia files.
It is understood that the first frame image may be formed in other manners, which is not limited in this embodiment.
The method for displaying the picture of the vehicle instrument provided by the embodiment obtains the first starting picture based on the initial starting animation, and comprises the following steps: intercepting a first frame image of an initial startup animation by adopting a multimedia file encoder, and converting the first frame image into an image in a first format so as to obtain a first startup picture; converting the first startup picture into a picture with a set storage format to obtain a converted first startup picture, wherein the method comprises the following steps: and converting the first frame image into an image with a set storage format by adopting a preset conversion tool so as to obtain a converted first starting picture. The method for acquiring the first startup picture can extract the first frame image of the initial startup animation and convert the first frame image into the set storage format, can adapt to various types of initial startup animations, has higher speed in the display process of the acquired first startup picture format, and shortens the black screen time.
As an optional implementation manner, on the basis of any one of the foregoing embodiments, obtaining the first boot image and the second boot image based on the initial boot animation includes:
Determining the kernel mode starting time and the user mode starting time; the kernel mode starting time length is the time length between the completion of frame buffer initialization of the display equipment and the completion of kernel mode starting;
up-sampling the initial startup animation based on the kernel mode startup time length and the user mode startup time length to obtain the up-sampled initial startup animation; the display time length of the initial startup animation after up-sampling processing is equal to the sum of the kernel mode startup time length and the user mode startup time length;
cutting the initial startup animation after up-sampling processing according to the ratio of the kernel mode startup time length to the user mode startup time length;
determining the front part of the cut starting animation conforming to the kernel mode starting time length as a first starting picture;
and determining the cut rear part of the startup animation conforming to the user state startup time length as a second startup picture.
Specifically, compared with the first frame image of the initial startup animation, the first startup animation may also be a multi-frame continuous image associated with the initial startup animation, at this time, it is necessary to monitor in advance a time period from the completion of the frame buffering initialization of the kernel mode display device to the completion of the kernel mode startup, and store the time period from the start to the end of the user mode in the screen display device of the vehicle instrument, and monitor the time period required by the user mode and store the time period in the screen display device of the vehicle instrument, and when the first startup picture and the second startup picture are obtained based on the initial startup animation, the kernel mode startup time period and the user mode startup time period are obtained from the screen display device of the vehicle instrument, so as to determine the kernel mode startup time period and the user mode startup time period. The method comprises the steps that the time length of an initial starting-up animation is only adaptive to the user state starting time length, so that the initial starting-up animation needs to be subjected to up-sampling processing to elongate the time length of the starting-up animation, the obtained display time length of the up-sampled initial starting-up animation is equal to the sum of the kernel state starting time length and the user state starting time length, the ratio of the kernel state starting time length to the user state starting time length is obtained based on the kernel state starting time length and the user state starting time length, the up-sampled starting-up animation is cut according to the ratio of the kernel state starting time length to the user state starting time length, the front part starting-up animation and the rear part starting-up animation which are consistent with the ratio of the kernel state starting time length to the user state starting time length are obtained, the front part starting-up animation and the rear part starting-up animation which are consistent with the kernel state starting time length are used as a first starting-up animation, and the rear part starting-up animation which is consistent with the user state starting time length is used as a second starting-up animation.
It can be understood that the initial startup animation may be cut first, and then the cut two-part startup animation may be up-sampled to obtain a front-part startup animation that conforms to the kernel mode startup duration and a rear-part startup animation that conforms to the user mode startup duration.
The method for displaying the images of the vehicle instrument provided by the embodiment obtains the first startup image and the second startup image based on the initial startup animation, and comprises the following steps: determining the kernel mode starting time and the user mode starting time; the kernel mode starting time length is the time length between the completion of frame buffer initialization of the display equipment and the completion of kernel mode starting; up-sampling the initial startup animation based on the kernel mode startup time length and the user mode startup time length to obtain the up-sampled initial startup animation; the display time length of the initial startup animation after up-sampling processing is equal to the sum of the kernel mode startup time length and the user mode startup time length; cutting the initial startup animation after up-sampling processing according to the ratio of the kernel mode startup time length to the user mode startup time length; determining the front part of the cut starting animation conforming to the kernel mode starting time length as a first starting picture; and determining the cut rear part of the startup animation conforming to the user state startup time length as a second startup picture. The first starting picture and the second starting picture which are obtained based on the kernel mode starting time and the user mode starting time can start to play multi-frame continuous images when the kernel mode is started until the user mode is started, are more coherent in the playing process, and are better in user experience.
Fig. 3 is a flowchart of a method for displaying a screen of a vehicle meter according to another embodiment of the present application, as shown in fig. 3, in which the method for displaying a screen of a vehicle meter according to the present embodiment is a specific flow when a first boot image is a first frame image of an initial boot animation and a second boot image is the initial boot animation, and the method for displaying a screen of a vehicle meter according to the present embodiment includes the following steps:
Step 301, a first frame image of a boot animation is obtained and converted into a set storage format.
Step 302, the obtained first frame image of the initial startup animation is put into a display driver catalog to be used as a first picture.
In step 303, the system is powered on to run Bootloader.
Step 304, the linux kernel is started to initialize the frame buffer driving framework of the display device.
In step 305, in response to monitoring that the initialization of the frame buffer of the display device in the kernel mode of the Linux operating system is completed, the display driver is loaded.
Step 306, running a display driver to control a first boot-up screen to be displayed when the kernel mode is started to be displayed in the vehicle instrument.
In step 307, in response to the detection that the user mode of the Linux operating system starts to be started, a second boot screen to be displayed when the user mode starts is controlled to be displayed in the vehicle instrument, and the second boot screen is associated with the first boot screen.
In this embodiment, the implementation manner and technical effects of steps 301 to 307 are similar to those of the corresponding schemes in the above embodiment, and are not described herein.
Fig. 4 is a schematic structural diagram of a screen display device of a vehicle meter according to an embodiment of the present application, as shown in fig. 4, where the screen display device of a vehicle meter according to the embodiment is located in the vehicle meter. The screen display device 40 of the vehicle meter provided in the present embodiment includes: a loading module 41, a running module 42 and a control module 43.
The loading module 41 is configured to load a display driver in response to monitoring that the frame buffer initialization of the display device in the kernel mode of the Linux operating system is completed; an operation module 42, configured to operate a display driver to control a first boot-up screen to be displayed when kernel mode is started to be displayed in a vehicle instrument; the control module 43 is configured to control a second boot-up screen to be displayed when the user mode is started in the vehicle instrument in response to the detection of the start-up of the user mode of the Linux operating system, where the second boot-up screen is associated with the first boot-up screen.
The image display device of the vehicle instrument provided in this embodiment may execute the method embodiment shown in fig. 2, and the specific implementation principle and technical effects are similar, and are not repeated here.
Optionally, the operation module 42 is specifically configured to, when operating the display driver to control displaying the first boot screen to be displayed when the kernel mode is started in the vehicle instrument: when a display driver is operated, driving a program preset in the display driver and used for controlling the display of a first starting picture to operate; and acquiring the pre-stored first starting picture from the kernel drive catalog of the display drive program based on the program for controlling the display of the first starting picture, and controlling the display of the first starting picture in the vehicle instrument.
Optionally, the screen display device of the vehicle instrument provided in this embodiment further includes an acquisition module and a storage module.
The obtaining module is used for obtaining an initial startup animation before the program preset in the display driver program for controlling the display of the first startup picture is run when the running module 42 runs the display driver program; and obtaining a first starting picture and a second starting picture based on the initial starting animation. The storage module is used for storing the first starting picture in a kernel drive catalog of the display drive program; the second boot-strap picture is stored in the user-mode drive directory.
Optionally, the screen display device of the vehicle instrument provided in this embodiment further includes a judging module and a converting module.
The judging module is used for judging whether the storage format of the first starting picture is a set storage format before the storage module stores the first starting picture in the kernel drive catalog of the display drive program. The conversion module is used for converting the first starting-up picture into a picture with a set storage format when the judgment module judges that the storage format of the first starting-up picture is not the set storage format so as to obtain the converted first starting-up picture.
Optionally, the first boot image is a first frame image of an initial boot animation, and the second boot image is the initial boot animation.
Optionally, the obtaining module is configured to, when obtaining the first boot image based on the initial boot animation, intercept a first frame image of the initial boot animation with the multimedia file encoder, and convert the first frame image into an image in a first format, so as to obtain the first boot image. The conversion module is used for converting the first frame image into an image with a set storage format by adopting a preset conversion tool when converting the first starting-up image into an image with a set storage format so as to obtain a converted first starting-up image.
Optionally, the obtaining module is specifically configured to, when obtaining the first boot image and the second boot image based on the initial boot animation: determining the kernel mode starting time and the user mode starting time; the kernel mode starting time length is the time length between the completion of frame buffer initialization of the display equipment and the completion of kernel mode starting; up-sampling the initial startup animation based on the kernel mode startup time length and the user mode startup time length to obtain the up-sampled initial startup animation; the display time length of the initial startup animation after up-sampling processing is equal to the sum of the kernel mode startup time length and the user mode startup time length; cutting the initial startup animation after up-sampling processing according to the ratio of the kernel mode startup time length to the user mode startup time length; determining the front part of the cut starting animation conforming to the kernel mode starting time length as a first starting picture; and determining the cut rear part of the startup animation conforming to the user state startup time length as a second startup picture.
Fig. 5 shows a schematic structural diagram of a vehicle meter according to an embodiment of the present application. As shown in fig. 5, the vehicle meter 50 for implementing the operation corresponding to the vehicle meter in any of the above method embodiments, the vehicle meter 50 of the present embodiment may include: a processor 51, a memory 52 and an output device 53.
The storage module 54 is used for storing computer execution instructions in a memory. And an output device 53 for displaying the first and second boot pictures under the control of the processor.
A processor 51 for executing a computer program stored in the memory to realize the heating control method in the above-described embodiment. Reference may be made in particular to the relevant description of the embodiments of the method described above. The Processor 51 may be a central processing unit (Central Processing Unit, CPU), or may be another general-purpose Processor, a digital signal Processor (DIGITAL SIGNAL Processor, DSP), an Application Specific Integrated Circuit (ASIC), or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in connection with the present invention may be embodied directly in a hardware processor for execution, or in a combination of hardware and software modules in a processor for execution.
A memory 52 for storing a computer program. The Memory 52 may include a high-speed random access Memory (Random Access Memory, RAM), and may further include a Non-Volatile Memory (NVM), such as at least one magnetic disk Memory, and may also be a U-disk, a removable hard disk, a read-only Memory, a magnetic disk, or an optical disk.
Alternatively, the memory 52 may be separate or integrated with the processor 51.
When the memory 52 is a device separate from the processor 51, the vehicle meter 50 may also include a bus 55. The bus 55 is used to connect the memory 52 and the processor 51. The bus 55 may be an industry standard architecture (Industry Standard Architecture, ISA) bus, an external device interconnect (PERIPHERAL COMPONENT INTERCONNECT, PCI) bus, or an extended industry standard architecture (Extended Industry Standard Architecture, EISA) bus, among others. The buses may be divided into address buses, data buses, control buses, etc. For ease of illustration, the buses in the drawings of the present application are not limited to only one bus or to one type of bus.
The output device 53 may be connected to the memory 52 via a bus 55. The processor 51 may control the output device 53.
The vehicle instrument provided in this embodiment may be used to execute the above-mentioned method for displaying a picture of the vehicle instrument, and its implementation manner and technical effects are similar, and this embodiment will not be described here again.
The present application also provides a computer readable storage medium having stored therein computer instructions which, when executed by a processor, are adapted to carry out the methods provided by the various embodiments described above.
The computer readable storage medium may be a computer storage medium or a communication medium. Communication media includes any medium that facilitates transfer of a computer program from one place to another. Computer storage media can be any available media that can be accessed by a general purpose or special purpose computer. For example, a computer-readable storage medium is coupled to the processor such that the processor can read information from, and write information to, the computer-readable storage medium. In the alternative, the computer-readable storage medium may be integral to the processor. The processor and the computer readable storage medium may reside in an Application SPECIFIC INTEGRATED Circuits (ASIC). In addition, the ASIC may reside in a user device. The processor and the computer-readable storage medium may also reside as discrete components in a communication device.
In particular, the computer readable storage medium may be implemented by any type or combination of volatile or non-volatile Memory devices, such as Static Random-Access Memory (SRAM), electrically erasable programmable Read-Only Memory (EEPROM), erasable programmable Read-Only Memory (Erasable Programmable Read Only Memory, EPROM), programmable Read-Only Memory (Programmable Read-Only Memory, PROM), read-Only Memory (ROM), magnetic Memory, flash Memory, magnetic or optical disk. A storage media may be any available media that can be accessed by a general purpose or special purpose computer.
The present application also provides a computer program product comprising a computer program stored in a computer readable storage medium. The computer program may be read from a computer-readable storage medium by at least one processor of the apparatus, and executed by the at least one processor, causes the apparatus to implement the methods provided by the various embodiments described above.
In the several embodiments provided by the present application, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of modules is merely a logical function division, and there may be additional divisions of actual implementation, e.g., multiple modules may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or modules, which may be in electrical, mechanical, or other forms.
Wherein the individual modules may be physically separated, e.g. mounted in different locations of one device, or mounted on different devices, or distributed over a plurality of network elements, or distributed over a plurality of processors. The modules may also be integrated together, e.g. mounted in the same device, or integrated in a set of codes. The modules may exist in hardware, or may also exist in software, or may also be implemented in software plus hardware. The application can select part or all of the modules according to actual needs to realize the purpose of the scheme of the embodiment.
When the individual modules are implemented as software functional modules, the integrated modules may be stored in a computer readable storage medium. The software functional modules described above are stored in a storage medium and include instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or processor to perform some of the steps of the methods of the various embodiments of the application.
It should be understood that, although the steps in the flowcharts in the above embodiments are sequentially shown as indicated by arrows, these steps are not necessarily sequentially performed in the order indicated by the arrows. The steps are not strictly limited in order and may be performed in other orders, unless explicitly stated herein. Moreover, at least some of the steps in the figures may include multiple sub-steps or stages that are not necessarily performed at the same time, but may be performed at different times, the order of their execution not necessarily occurring in sequence, but may be performed alternately or alternately with other steps or at least a portion of the other steps or stages.
Other embodiments of the application will be apparent to those skilled in the art from consideration of the specification and practice of the application disclosed herein. This application is intended to cover any variations, uses, or adaptations of the application following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the application pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the application being indicated by the following claims.
It is to be understood that the application is not limited to the precise arrangements and instrumentalities shown in the drawings, which have been described above, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the application is limited only by the appended claims.

Claims (11)

1. A picture display method of a vehicle meter, wherein the vehicle meter carries a Linux operating system, the method comprising:
loading a display driver in response to the completion of the initialization of the frame buffer of the display device in the kernel mode of the Linux operating system;
running the display driver to control a first boot image to be displayed when kernel mode is started to be displayed in a vehicle instrument;
and in response to the detection that the user mode of the Linux operating system starts to start, controlling a second starting picture to be displayed when the user mode starts to be displayed in the vehicle instrument, wherein the second starting picture is associated with the first starting picture.
2. The method of claim 1, wherein the running the display driver to control the display of the first boot-up screen to be displayed when kernel mode is initiated in a vehicle meter comprises:
when the display driver is operated, driving a program preset in the display driver and used for controlling the display of a first starting picture to operate;
And acquiring the pre-stored first starting picture from a kernel drive catalog of the display driver based on the program for controlling the display of the first starting picture, and controlling the display of the first starting picture in a vehicle instrument.
3. The method according to claim 2, wherein the driving, when the display driver is running, the program preset in the display driver for controlling the display of the first boot-up screen is run, further comprising:
Acquiring an initial startup animation;
obtaining the first starting picture and the second starting picture based on the initial starting animation;
storing the first starting picture in a kernel drive catalog of the display driver;
And storing the second starting picture in the user mode drive catalog.
4. The method of claim 3, wherein prior to storing the first boot picture in the kernel driver catalog of the display driver, further comprising:
Judging whether the storage format of the first starting picture is a set storage format or not;
if not, converting the first starting picture into a picture with a set storage format so as to obtain a converted first starting picture.
5. The method of claim 4, wherein the first boot-up picture is a first frame image of the initial boot-up animation and the second boot-up picture is the initial boot-up animation.
6. The method of claim 5, wherein obtaining the first boot-up picture based on the initial boot-up animation comprises:
Intercepting a first frame image of the initial startup animation by adopting a multimedia file encoder, and converting the first frame image into an image in a first format so as to obtain a first startup picture;
the converting the first startup picture into a picture with a set storage format to obtain a converted first startup picture includes:
and converting the first frame image into an image with a set storage format by adopting a preset conversion tool so as to obtain a converted first starting picture.
7. The method of claim 4, wherein obtaining the first boot-up picture and the second boot-up picture based on the initial boot-up animation comprises:
determining the kernel mode starting time and the user mode starting time; the kernel mode starting time is the time between the completion of frame buffer initialization of the display equipment and the completion of kernel mode starting;
Performing up-sampling processing on the initial startup animation based on the kernel mode startup time length and the user mode startup time length to obtain the up-sampled initial startup animation; the display duration of the initial startup animation after the up-sampling processing is equal to the sum of the kernel mode startup duration and the user mode startup duration;
Cutting the initial startup animation after the up-sampling processing according to the ratio of the kernel mode startup time length to the user mode startup time length;
determining the front part of the cut starting animation conforming to the kernel mode starting time length as a first starting picture;
and determining the cut rear part of the startup animation conforming to the user state startup time length as a second startup picture.
8. A screen display device of a vehicle instrument, characterized by comprising:
the loading module is used for loading a display driver in response to the fact that the initialization of the frame buffer of the display device in the kernel mode of the Linux operating system is finished;
The running module is used for running the display driver program to control the first starting picture to be displayed when kernel mode starting is displayed in the vehicle instrument;
And the control module is used for responding to the detection that the user mode of the Linux operating system starts to start, and controlling a second starting picture to be displayed when the user mode starts in the vehicle instrument, wherein the second starting picture is associated with the first starting picture.
9. A vehicle meter, comprising: a processor, and a memory and an output device communicatively connected to the processor;
The memory stores computer-executable instructions; the output device is used for displaying a first starting picture and a second starting picture under the control of the processor;
The processor executes computer-executable instructions stored in the memory to implement the method of any one of claims 1-7.
10. A computer readable storage medium having stored therein computer executable instructions which when executed by a processor are adapted to carry out the method of any one of claims 1-7.
11. A computer program product comprising a computer program which, when executed by a processor, implements the method of any of claims 1-7.
CN202410277643.4A 2024-03-12 2024-03-12 Picture display method, device, equipment, storage medium and product of vehicle instrument Pending CN118124382A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410277643.4A CN118124382A (en) 2024-03-12 2024-03-12 Picture display method, device, equipment, storage medium and product of vehicle instrument

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410277643.4A CN118124382A (en) 2024-03-12 2024-03-12 Picture display method, device, equipment, storage medium and product of vehicle instrument

Publications (1)

Publication Number Publication Date
CN118124382A true CN118124382A (en) 2024-06-04

Family

ID=91228882

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410277643.4A Pending CN118124382A (en) 2024-03-12 2024-03-12 Picture display method, device, equipment, storage medium and product of vehicle instrument

Country Status (1)

Country Link
CN (1) CN118124382A (en)

Similar Documents

Publication Publication Date Title
CN109697060B (en) Video special effect system, generation method, device, equipment and storage medium thereof
US6825844B2 (en) System and method for optimizing a graphics intensive software program for the user's graphics hardware
WO2014043524A1 (en) System and method for producing edited images using embedded plug-in
EP2164008A2 (en) System and method for transforming web page objects
WO2010053953A2 (en) Hardware-accelerated graphics for web applications using native code modules
US20050012753A1 (en) Systems and methods for compositing graphics overlays without altering the primary display image and presenting them to the display on-demand
US6907597B1 (en) Method and apparatus for constructing an executable program in memory
JP2013513858A (en) Server side rendering
CN110647378A (en) Dynamic image loading method and device and electronic equipment
CN110641382A (en) Display method and device of vehicle-mounted interface, electronic equipment and storage medium
CN109065001B (en) Image down-sampling method and device, terminal equipment and medium
CN118124382A (en) Picture display method, device, equipment, storage medium and product of vehicle instrument
US7966484B1 (en) Automatic alternating bootable storage devices between different kinds of boot files
EP1376473A2 (en) System and method for employing non-alpha channel image data in an alpha-channel-aware environment
US20050251583A1 (en) System and method to conditionally shrink an executable module
CN116775181A (en) Method and system for switching theme of vehicle-mounted terminal and intelligent cabin
CN113794846A (en) Video cloud clipping method and device and cloud clipping server
CN114827186A (en) Cloud application processing method and system
CN114116227A (en) Display method, device and equipment based on Wayland protocol without GPU support
CN115309466B (en) Instrument system starting method and device and instrument equipment
CN113468454A (en) Method and device for rendering HTML (hypertext markup language) page
US20040090454A1 (en) Method and apparatus for replacing the skin of an onscreen audio player
US20240066403A1 (en) Method and computer device for automatically applying optimal configuration for games to run in 3d mode
CN112181868B (en) Display method, display system, electronic device and storage medium for identification picture
US20050088454A1 (en) Method of displaying an image of a windowless object

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