Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention. 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 description relating to "first", "second", etc. in the present invention is for descriptive purposes only and is not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In addition, technical solutions between various embodiments may be combined with each other, but must be realized by a person skilled in the art, and when the technical solutions are contradictory or cannot be realized, such a combination should not be considered to exist, and is not within the protection scope of the present invention.
Fig. 1 is a schematic flow chart showing a method for displaying a startup logo picture according to an embodiment of the present invention. The method for displaying the startup logo picture comprises the following steps:
step S1, in the initialization stage of the basic input and output system, before drawing the startup logo picture, calling a preset drawing function, and reading the extended display identification data of the display screen according to the EDP digital interface;
the Basic Input Output System (BIOS) is a set of programs that are fixed on a ROM chip on a main board in a computer, and stores the most important Basic Input and Output programs of the computer, a self-test program after power-on, and a System self-start program, and mainly functions to provide the bottommost and most direct hardware setting and control for the computer.
The EDP digital interface is a communication interface of a display screen, is a full-digital interface based on a DisplayPort architecture and a DisplayPort protocol, can transmit high-resolution signals by using a simpler connector and fewer pins, and can realize simultaneous transmission of multiple data. When the host is connected to the display, the host reads the Extended Display Identification Data (EDID) stored in the DDC memory through the DDC channel.
After the device is powered on and started, the basic input and output system enters an initialization stage, a preset drawing function DrawQuietBolo is called firstly before drawing a startup logo picture, and extended display identification data EDID of a display screen is read according to an EDP digital interface.
Step S2, reading a pre-configured configuration file stored in the bios, and reading picture source information corresponding to the extended display identification data in the configuration file, where the configuration file at least includes picture source information of multiple pictures;
the basic input and output system comprises a memory, a basic input and output system and a display screen, wherein the memory of the basic input and output system stores a pre-configured configuration file, a plurality of items are configured in the configuration file, each item corresponds to one piece of picture source information, the configuration file comprises a plurality of different pieces of picture source information, and a picture corresponding to each piece of picture source information can be used as a startup logo picture of the corresponding display screen. The picture source information comprises the name of the picture, and the name of the picture is the unique identification code of the picture.
And step S3, acquiring a picture storage path corresponding to the read picture source information from the image library file of the basic input and output system, and drawing and displaying a startup logo picture based on the picture of the picture storage path.
In this embodiment, after the picture source information corresponding to the extended display identification data is read from the configuration FILE, the picture storage path corresponding to the picture source information is read from the image library FILE SDL of the basic input/output system, for example, for the picture source information "search RAW ═ LOGO _ FILE _ NAME 2", the NAME of the picture is "NAME 2", in the image library FILE SDL, first, the NAME ═ LOGO _ FILE NAME2 "is queried, and after the query, the corresponding Value, which is the picture storage path," Amitsepkg/core/em/AMITSE/dual. And when the startup logo picture is drawn, obtaining a corresponding picture according to the storage path and displaying the picture on a display screen.
According to the description, when different display screen products are carried on the same mainboard, the same BIOS can be compatible with the customization requirements of different display screen products, when the mainboard is connected with different display screen products, the corresponding startup LOGO picture is drawn according to the EDID information, when the display screens are switched, the startup LOGO picture is simultaneously switched to the LOGO corresponding to the display screens, the customization requirements are met, and the maintenance workload is reduced. In addition, the embodiment does not need to increase any hardware cost and user software design cost, does not need to interact with user upper application software, and the implementation of the whole scheme is independently implemented by the BIOS, and the embodiment is independent of a specific hardware platform and BIOS codes, and the scheme has universality and good compatibility, can be applied to POS terminals, industrial control and the whole personal computer field, and is particularly suitable for the design that different products of a user are not reserved and distinguished on hardware (in a common scheme, the user-defined general type input and output GPIOs are reserved, for example, different general type input and output GPIOs are configured to correspond to different product models).
In this embodiment, a predetermined drawing function is called at the initialization stage of the basic input/output system, extended display identification data of the display screen is read according to the EDP digital interface, then picture source information corresponding to the extended display identification data in the configuration file is read, finally, a picture storage path corresponding to the picture source information is obtained from the image library file, and a boot logo picture is drawn and displayed according to a picture of the picture storage path. When different display screen products are carried on the same mainboard, the startup logo picture corresponding to each display screen product can be displayed through the preset configuration, and the customization requirements of different display screen products are met.
In an embodiment, on the basis of the above embodiment of fig. 1, before the step S1 calls a predetermined drawing function in the initialization stage of the bios before drawing the boot logo picture, and before reading the extended display identification data of the display screen according to the EDP digital interface, the method further includes the following steps:
adding picture storage paths corresponding to the multiple pictures respectively in an image library file of the basic input and output system;
and configuring picture source information corresponding to the plurality of pictures in the configuration file respectively, and storing the configured configuration file in a memory of the basic input and output system.
In this embodiment, in the image library FILE, for example, the first added picture is Name ═ LOGO _ FILE _ Name ", and the corresponding storage path is Value ═ amitspkg/core/em/amitte/LOGO 3. png"; the first picture added is Name ═ LOGO _ FILE _ Name2 ", and the corresponding storage path is Value ═ Amitsepkg/core/em/AMITSE/dual.
In the configuration FILE, the first item is configured with first picture source information session RAW ═ low _ FILE _ NAME, and the second item is configured with second picture source information session RAW ═ low _ FILE _ NAME 2. After configuration, the configuration file is stored in the memory of the basic input and output system.
In an embodiment, on the basis of the embodiment of fig. 1, before displaying the boot logo picture, the method further includes:
acquiring preset display parameters, acquiring display parameters of the startup logo picture displayed on a current display screen, and analyzing whether the display parameters of the startup logo picture displayed on the current display screen are correspondingly consistent with the preset display parameters or not;
and if the images are consistent, displaying the startup logo image.
In this embodiment, before the display screen displays the startup logo picture, the check is performed to obtain the predetermined display parameters, and the predetermined display parameters may be preset according to the requirements of the customer or default display parameters are adopted. And acquiring display parameters of the startup logo picture displayed on the current display screen, wherein the display parameters at least comprise resolution, display time and screen direction, and the screen direction comprises a horizontal screen and a vertical screen. And respectively and correspondingly comparing the display parameters of the startup logo picture displayed on the current display screen with the preset display parameters, and if the display parameters are respectively and correspondingly consistent, displaying the startup logo picture and entering an operating system.
Further, if the two images are not consistent, entering the basic input and output system and setting display parameters of the startup logo image displayed on the current display screen;
and restarting the equipment, and entering the initialization stage of the basic input and output system again to draw and display the startup logo picture.
In this embodiment, if at least one item of display parameters displayed on the current display screen of the startup logo picture is inconsistent with at least one item of preset display parameters, the startup logo picture can enter the basic input and output system for setting, each item of display parameters is set to be consistent with the preset display parameters, then the device is restarted to enable the set display parameters to take effect, and the startup logo picture is drawn and displayed after the device enters the basic input and output system initialization stage again.
In one embodiment, the present invention provides a device for displaying a boot logo image, wherein the device for displaying the boot logo image corresponds to the method for displaying the boot logo image in the above embodiment one by one. As shown in fig. 2, the apparatus for displaying a boot logo image includes:
the calling module 101 is used for calling a preset drawing function before drawing a startup logo picture in the initialization stage of the basic input and output system, and reading the extended display identification data of the display screen according to the EDP digital interface;
a reading module 102, configured to read a pre-configured configuration file stored in the basic input/output system, and read picture source information corresponding to the extended display identification data in the configuration file, where the configuration file at least includes picture source information of multiple pictures;
and the display module 103 is configured to acquire a picture storage path corresponding to the read picture source information from the image library file of the basic input/output system, and draw and display a boot logo picture based on a picture of the picture storage path.
The specific limitations of the device for displaying the startup logo image can be referred to the limitations of the method for displaying the startup logo image in the above, and are not described herein again. All or part of each module in the device for displaying the startup logo picture can be realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which is a device capable of automatically performing numerical calculation and/or information processing according to instructions set or stored in advance. The Computer device may be a PC (Personal Computer), or a smart phone, a tablet Computer, a Computer, or a server group consisting of a single network server and a plurality of network servers, or a cloud consisting of a large number of hosts or network servers based on cloud computing, where cloud computing is one of distributed computing, and is a super virtual Computer consisting of a group of loosely coupled computers.
As shown in fig. 3, the computer device may include, but is not limited to, a memory 11, a processor 12, and a network interface 13, which are communicatively connected to each other through a system bus, wherein the memory 11 stores a computer program that is executable on the processor 12. It should be noted that fig. 3 only shows a computer device with components 11-13, but it should be understood that not all of the shown components are required to be implemented, and that more or fewer components may be implemented instead.
The memory 11 may be a non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM). In this embodiment, the readable storage medium of the memory 11 is generally used for storing an operating system and various types of application software installed in the computer device, for example, program codes of a computer program in an embodiment of the present invention. Further, the memory 11 may also be used to temporarily store various types of data that have been output or are to be output.
The processor 12 may be a Central Processing Unit (CPU), a controller, a microcontroller, a microprocessor, or other data processing chip in some embodiments, and is used for executing program codes stored in the memory 11 or processing data, such as executing computer programs.
The network interface 13 may comprise a standard wireless network interface, a wired network interface, and the network interface 13 is generally used for establishing communication connection between the computer device and other electronic devices.
The computer program is stored in the memory 11 and includes at least one computer readable instruction stored in the memory 11, which is executable by the processor 12 to implement the method of the embodiments of the present application, including:
in the initialization stage of the basic input and output system, before drawing the startup logo picture, calling a preset drawing function, and reading the extended display identification data of the display screen according to the EDP digital interface;
reading a pre-configured configuration file stored in the basic input and output system, and reading picture source information corresponding to the extended display identification data in the configuration file, wherein the configuration file at least comprises the picture source information of a plurality of pictures;
and acquiring a picture storage path corresponding to the read picture source information from the image library file of the basic input and output system, and drawing and displaying the startup logo picture based on the picture of the picture storage path.
Further, the processor, when executing the computer program, further implements the steps of:
acquiring preset display parameters, acquiring display parameters of the startup logo picture displayed on a current display screen, and analyzing whether the display parameters of the startup logo picture displayed on the current display screen are correspondingly consistent with the preset display parameters or not;
and if the images are consistent, displaying the startup logo image.
Further, the processor, when executing the computer program, further implements the steps of:
if the two images are not consistent, entering the basic input and output system and setting display parameters of the startup logo image displayed on the current display screen;
and restarting the equipment, and entering the initialization stage of the basic input and output system again to draw and display the startup logo picture.
Further, the display parameters at least include resolution, display time and screen direction.
Further, in the initialization stage of the basic input and output system, before the step of drawing the startup logo picture, calling a predetermined drawing function, and reading the extended display identification data of the display screen according to the EDP digital interface, the method further includes:
adding picture storage paths corresponding to the multiple pictures respectively in an image library file of the basic input and output system;
and configuring picture source information corresponding to the plurality of pictures in the configuration file respectively, and storing the configured configuration file in a memory of the basic input and output system.
In one embodiment, the present invention provides a computer-readable storage medium, which may be a non-volatile and/or volatile memory, and has a computer program stored thereon, where the computer program, when executed by a processor, implements the steps of the method for displaying a power-on logo picture in the above embodiments, such as steps S1 to S3 shown in fig. 1. Alternatively, the computer program, when executed by the processor, implements the functions of the modules/units of the device for displaying a boot logo picture in the above embodiments, such as the functions of the modules 101 to 103 shown in fig. 2. To avoid repetition, further description is omitted here.
It will be understood by those skilled in the art that all or part of the processes of the methods of the above embodiments may be implemented by a computer program that instructs associated hardware to perform the processes of the embodiments of the methods described above when executed.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, apparatus, article, or method that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, apparatus, article, or method.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.