CN113183759A - Method and device for displaying characters of instrument panel - Google Patents

Method and device for displaying characters of instrument panel Download PDF

Info

Publication number
CN113183759A
CN113183759A CN202110742433.4A CN202110742433A CN113183759A CN 113183759 A CN113183759 A CN 113183759A CN 202110742433 A CN202110742433 A CN 202110742433A CN 113183759 A CN113183759 A CN 113183759A
Authority
CN
China
Prior art keywords
bitmap
character
characters
information
attribute information
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
CN202110742433.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.)
Zhidao Wanglian Technology Shenzhen Co ltd
Zhidao Network Technology Beijing Co Ltd
Original Assignee
Zhidao Wanglian Technology Shenzhen Co ltd
Zhidao Network Technology Beijing 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 Zhidao Wanglian Technology Shenzhen Co ltd, Zhidao Network Technology Beijing Co Ltd filed Critical Zhidao Wanglian Technology Shenzhen Co ltd
Priority to CN202110742433.4A priority Critical patent/CN113183759A/en
Publication of CN113183759A publication Critical patent/CN113183759A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60KARRANGEMENT OR MOUNTING OF PROPULSION UNITS OR OF TRANSMISSIONS IN VEHICLES; ARRANGEMENT OR MOUNTING OF PLURAL DIVERSE PRIME-MOVERS IN VEHICLES; AUXILIARY DRIVES FOR VEHICLES; INSTRUMENTATION OR DASHBOARDS FOR VEHICLES; ARRANGEMENTS IN CONNECTION WITH COOLING, AIR INTAKE, GAS EXHAUST OR FUEL SUPPLY OF PROPULSION UNITS IN VEHICLES
    • B60K35/00Arrangement of adaptations of instruments
    • B60K35/28
    • B60K35/81
    • B60K2360/167

Abstract

The invention provides a method and a device for displaying dashboard characters, wherein the method comprises the following steps: determining bitmap information of the characters to be displayed, and storing the bitmap information of the characters to be displayed in a cached bitmap linked list; generating a first index array according to attribute information of characters to be displayed and node addresses of a bitmap linked list; searching in the first index array according to the attribute information of the target character; if the attribute information of the character corresponding to the attribute information of the target character is found, reading the corresponding bitmap information from the bitmap chain table according to the bitmap chain table node address of the character for displaying; if the attribute information of the character corresponding to the attribute information of the target character is not found, the bitmap information of the target character is created and displayed, the created bitmap information of the target character is stored in the bitmap chain table, and the first index array is updated, so that the bitmap information does not need to be generated every time, the processor overhead is saved, and the character display efficiency is improved.

Description

Method and device for displaying characters of instrument panel
Technical Field
The invention relates to the technical field of data processing, in particular to a method and a device for displaying dashboard characters, electronic equipment and a storage medium.
Background
With the development of automobile intelligent technology, an automobile instrument panel can display different characters so as to provide a driver with various kinds of running information, such as vehicle speed, tire pressure, engine speed, oil consumption and the like, so as to represent the running state of an automobile in the running process.
Because the information type displayed by the instrument panel is relatively fixed, the instrument panel of the automobile can continuously and repeatedly display some characters. In the prior art, each time a character is displayed, the bitmap information of the character needs to be called. For a low-performance processor, generating character bitmap information may bring a large computational overhead to the processor, and at the same time, may also bring a time delay, and the display efficiency is low.
How to reduce the processor overhead brought by the processor generating the character bitmap information and simultaneously display the character information with high efficiency is a technical problem to be solved urgently.
Disclosure of Invention
The invention provides a display method and device of dashboard characters, electronic equipment and a storage medium, which are used for solving the technical defects in the prior art.
The invention provides a display method of dashboard characters, which comprises the following steps:
determining bitmap information of characters to be displayed, and storing the bitmap information of the characters to be displayed in a cached bitmap linked list;
generating a first index array according to the attribute information of the character to be displayed and the node address of the bitmap linked list;
searching in the first index array according to the attribute information of the target character;
if the attribute information of the character corresponding to the attribute information of the target character is found, reading the corresponding bitmap information from the bitmap chain table according to the node address of the bitmap chain table of the character for displaying;
and if the attribute information of the character corresponding to the attribute information of the target character is not found, creating and displaying bitmap information of the target character, storing the created bitmap information of the target character in the bitmap chain table, and updating the first index array.
According to the display method of the instrument panel characters provided by the invention, the bitmap chain table comprises a plurality of storage nodes, and the attribute information of the characters to be displayed comprises character codes;
storing the bitmap information of the character to be displayed in a cached bitmap linked list, wherein the bitmap information comprises: respectively storing the bitmap information of the characters to be displayed in a plurality of cached storage nodes;
generating a first index array according to the attribute information of the character to be displayed and the node address of the bitmap linked list, wherein the method comprises the following steps:
and taking the attribute information of each character to be displayed and the node address of the bitmap linked list as array elements, and sequencing the array elements according to the size of the character code to generate a first index array.
According to the method for displaying the characters of the instrument panel, which is provided by the invention, the corresponding bitmap information is read from the bitmap chain table for displaying according to the node addresses of the bitmap chain table of the characters, and the method comprises the following steps:
searching a corresponding storage node in the bitmap linked list according to the node address of the bitmap linked list of the character, and reading and displaying corresponding bitmap information in the storage node;
storing the created bitmap information of the target character in the bitmap chain table, and updating the first index array, wherein the updating comprises:
adding a storage node in the bitmap chain table according to the bitmap information of the target character, and storing the bitmap information of the target character in the added storage node;
and updating the first index array according to the attribute information of the target character and the node address of the bitmap linked list of the target character.
According to the display method of the instrument panel characters provided by the invention, the attribute information of the characters to be displayed comprises the use frequency of the characters;
the method further comprises the following steps:
and taking the attribute information of each character to be displayed and the node address of the bitmap linked list as array elements, and sequencing the array elements according to the use frequency of the characters to generate a second index array.
According to the method for displaying the instrument panel characters provided by the invention, the method further comprises the following steps:
and under the condition that the number of the stored characters reaches a first threshold value, deleting the storage nodes corresponding to the characters with the use frequency less than a second threshold value according to a second index array, and updating the second index array and the first index array.
According to the method for displaying the instrument panel characters provided by the invention, the method further comprises the following steps:
and updating the use frequency of each character in the second index array according to the display frequency of each character.
According to the method for displaying the dashboard characters provided by the invention, under the condition that the created bitmap information of the target characters is stored in the bitmap linked list, the method further comprises the following steps: and updating the second index array according to the created use frequency of the characters and the bitmap linked list node addresses of the characters.
The invention provides a display device of instrument panel characters, comprising:
the bitmap information determining module is used for determining bitmap information of characters to be displayed and storing the bitmap information of the characters to be displayed in a cached bitmap linked list;
the first index array generating module is used for generating a first index array according to the attribute information of the character to be displayed and the node address of the bitmap linked list;
the searching module is used for searching in the first index array according to the attribute information of the target character;
the first processing module is used for reading and displaying the corresponding bitmap information in the bitmap chain table according to the bitmap chain table node address of the character if the attribute information of the character corresponding to the attribute information of the target character is found;
and the second processing module is used for creating and displaying bitmap information of the target character if the attribute information of the character corresponding to the attribute information of the target character is not found, storing the created bitmap information of the target character in the bitmap linked list, and updating the first index array.
The invention also provides an electronic device, which comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor executes the program to realize the steps of the instrument panel character display method.
The present invention also provides a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the method for displaying dashboard characters as described in any one of the above.
According to the method and the device for displaying the characters on the instrument panel, the bitmap information of the characters to be displayed is stored in the cached bitmap chain table, the first index array is generated according to the attribute information of the characters to be displayed and the node addresses of the bitmap chain table, then the bitmap information of the characters is stored in the cached bitmap chain table, the first index array comprising the attribute information of the characters and the node addresses of the bitmap chain table is set for management, and the bitmap information is searched in the first index array according to the attribute information of the target characters under the condition that the target characters need to be displayed, so that the bitmap information does not need to be generated every time, processor overhead is saved, and the character display efficiency is improved.
Drawings
In order to more clearly illustrate the technical solutions of the present invention or the prior art, the drawings needed for the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
FIG. 1 is a schematic flow chart of a method for displaying dashboard characters according to the present invention;
FIG. 2 is a schematic diagram of the structure of a bitmap linked list provided by the present invention;
FIG. 3 is a second flowchart illustrating a method for displaying dashboard characters according to the present invention;
FIG. 4 is a schematic structural diagram of a display device for dashboard characters provided by the present invention;
fig. 5 is a schematic structural diagram of an electronic device provided in the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is obvious that the described embodiments are some, but not all embodiments of the present 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.
A method and an apparatus for displaying dashboard characters, an electronic device, and a storage medium according to embodiments of the present invention are described below with reference to fig. 1 to 5.
The embodiment of the invention discloses a method for displaying characters on a dashboard, which is shown in figure 1 and comprises the following steps:
step 101, determining bitmap information of a character to be displayed, and storing the bitmap information of the character to be displayed in a cached bitmap linked list.
In this embodiment, the target character is a character to be displayed in the dashboard. The target characters are determined according to the vehicle running information obtained by the processor, such as vehicle speed information, engine rotating speed, fuel consumption information and the like of the vehicle.
The attribute information of the target character includes at least one attribute value of a plurality of kinds, such as character code, character size, character color, and character font. The character code may be ASCII code.
In this embodiment, the bitmap information of the character is stored in the cache, which is convenient for timely reading.
There are various ways to store bitmap information of characters, for example, storing the bitmap information by a linked list, a linear table, or other structures. The embodiment stores the bitmap information of the characters in the form of a bitmap linked list.
A Linked list (Linked list) is a common underlying data structure that includes a plurality of nodes. The linked list does not need to store data in linear order as in the sequential list, but rather a Pointer (Pointer) to the next node in each node. Because the bitmap chain table is not required to be stored in sequence, the complexity of the bitmap chain table is much faster than that of the sequence table when a node is inserted. Fig. 2 shows a structural diagram of a bitmap linked list.
Specifically, the bitmap linked list includes a plurality of storage nodes, and the attribute information of the character to be displayed includes a character code; step 101 comprises: and respectively storing the bitmap information of the character to be displayed in a plurality of cached storage nodes.
And 102, generating a first index array according to the attribute information of the character to be displayed and the node address of the bitmap linked list.
Specifically, step 102 includes: and taking the attribute information of each character to be displayed and the node address of the bitmap linked list as array elements, and sequencing the array elements according to the size of the character code to generate a first index array.
In this embodiment, the attribute information of the character includes: at least one attribute value of character code, character size, character color and character font.
Table 1 shows one structure of the first index array. The bitmap linked list is indexed through the first index array, so that the characteristic of high array searching efficiency can be effectively utilized, and the display efficiency is improved.
TABLE 1
Character(s) Attribute information Bitmap linked list node addresses
Character 1 T11 A11
Character 2 T12 A12
Character 3 T13 A13
The array elements of the first index array may be sorted according to the size of the character code. For example, character code for character 1 > character code for character 2 > character code for character 3, then the array elements of the first index array are sorted in the order of character 1-character 2-character 3.
As can be seen from table 1, each character has corresponding attribute information and bitmap linked list node addresses. And comparing the attribute information of the target character with the attribute information of the character in the first index array, and if the comparison is successful, indicating that the bitmap information of the character is stored in the cached bitmap chain table, so that the bitmap information of the character can be directly read in the cached bitmap chain table without regeneration, the display efficiency is improved, and the processor overhead is saved.
And 103, searching in the first index array according to the attribute information of the target character.
And 104, if the attribute information of the character corresponding to the attribute information of the target character is found, reading the corresponding bitmap information from the bitmap chain table according to the bitmap chain table node address of the character and displaying the bitmap information.
Specifically, referring to fig. 2, if the bitmap chain table includes a plurality of storage nodes, in step 104, the corresponding storage nodes are searched in the bitmap chain table according to the node addresses of the bitmap chain table of the characters, and the corresponding bitmap information is read from the storage nodes for display.
Referring to table 1, if the attribute information of the target character is the same as the attribute information of character 2, the corresponding storage node a2 is searched for in the bitmap chain table according to the bitmap chain table node address a12 of character 2, and then the bitmap information in the storage node a2 is read for display.
In this embodiment, when the attribute information includes a plurality of attribute values, it is necessary to determine that each attribute value of the target character is respectively the same as each attribute value of the character in the first index array, and the attribute information of the character corresponding to the attribute information of the target character may be determined to be found.
And 105, if the attribute information of the character corresponding to the attribute information of the target character is not found, creating and displaying bitmap information of the target character, storing the created bitmap information of the target character in the bitmap chain table, and updating the first index array.
In this embodiment, the created bitmap information of the target character is stored in the bitmap linked list, so that the bitmap linked list can be updated in time, and the first index array is updated at the same time, thereby ensuring that the target character can be found in the next searching process.
In this embodiment, storing the created bitmap information of the target character in the bitmap linked list includes: and adding a storage node in the bitmap linked list according to the bitmap information of the target character, and storing the bitmap information of the target character in the added storage node.
Updating the first index array, including: and updating the first index array according to the attribute information of the target character and the node address of the bitmap linked list of the target character.
According to the display method of the instrument panel characters provided by the embodiment of the invention, the bitmap information of the characters is stored in the cached bitmap chain table, the first index array comprising the attribute information of the characters and the node addresses of the bitmap chain table is set for management, and the bitmap information is searched in the first index array according to the attribute information of the target characters under the condition that the target characters need to be displayed, so that the bitmap information does not need to be generated every time, the expense of a processor is saved, and the display efficiency of the characters is improved.
The embodiment of the invention also discloses a display method of the dashboard characters, which is shown in fig. 3 and comprises the following steps:
step 301, determining bitmap information of the character to be displayed, and respectively storing the bitmap information of the character to be displayed in a plurality of cached storage nodes.
Step 302, taking the attribute information of each character to be displayed and the node address of the bitmap linked list as array elements, and sorting the array elements according to the size of the character code to generate a first index array.
And step 303, searching in the first index array according to the attribute information of the target character.
In this embodiment, the target character is a character to be displayed in the dashboard. The target characters are determined according to the vehicle running information obtained by the processor, such as vehicle speed information, engine rotating speed, fuel consumption information and the like of the vehicle.
The attribute information of the target character includes at least one attribute value of a plurality of kinds, such as character code, character size, character color, and character font. The character code may be ASCII code.
In this embodiment, the bitmap information of the character is stored in the cache, which is convenient for timely reading.
In addition, for a specific explanation of the first index array, refer to the explanation of the foregoing embodiment, and are not repeated herein.
Step 304, if the attribute information of the character corresponding to the attribute information of the target character is found, finding a corresponding storage node in the bitmap chain table according to the node address of the bitmap chain table of the character, reading the corresponding bitmap information from the storage node for display, and then executing step 309.
For example, a target character m to be displayed is determined, the bitmap linked list comprises 5 storage nodes A21-A25, and the first index array comprises attribute information of the 5 characters and addresses of the corresponding storage nodes.
If the attribute information of the character 3 is found to correspond to the attribute information of the target character m in the first index array, the bitmap information in the storage node a23 corresponding to the character 3 is displayed in the dashboard.
Step 305, if the attribute information of the character corresponding to the attribute information of the target character is not found, creating bitmap information of the target character and displaying the bitmap information.
And step 306, adding a storage node in the bitmap chain table according to the bitmap information of the target character, and storing the bitmap information of the target character in the added storage node.
Still in the above example, the target character n to be displayed is determined, if the attribute information of the character not found in the first index array corresponds to the attribute information of the target character n, the storage node a26 is newly added to the bitmap chain table, and then the bitmap information of the target character is stored in the storage node a 26.
And 307, updating the first index array according to the attribute information of the target character and the node address of the bitmap chain table of the target character.
In the first index array, the newly added array element includes attribute information of the target character n and the address of the storage node a 26.
And 308, taking the attribute information of each character to be displayed and the node address of the bitmap linked list as array elements, and sequencing the array elements according to the use frequency of the characters to generate a second index array.
In this embodiment, in addition to the first index array, a second index array is introduced to delete a specified number of storage nodes when the number of stored characters reaches a first threshold value, so as to save storage space.
The second index array and the first index array may have the same structure or different structures. In this embodiment, the first index array and the second index array may both include: attribute information of the character, frequency of use, and bitmap linked list node address of the character.
The two arrays can be sorted according to different variables, for example, the first index array is sorted according to the size of the character code; the second index array is sorted by frequency of use. And under the condition that the characters are read and displayed in the instrument panel, the use frequency corresponding to the characters is changed, and the first index array and the second index array are updated.
When the character use frequency changes, for the second index array, when the character is used once, the use frequency is increased by 1. At this time, the array element where the character is located only needs to be compared to the left, and if the use frequency of the array element where the character is located is greater than that of the array element on the left, the array element where the character is located is shifted to the left. And by analogy, the array elements of the whole second index array are sorted from high to low according to the use frequency.
Step 309, under the condition that the number of the stored characters reaches the first threshold, according to the second index array, deleting the storage node corresponding to the character with the use frequency less than the second threshold, and updating the second index array and the first index array.
And the second index array comprises the use frequency of the characters and the bitmap chain table node addresses of the characters.
In this embodiment, the storage node of the character whose use frequency is smaller than the second threshold may be deleted by setting the use frequency threshold; or sorting can be performed according to the use frequency of the characters in the second index array, and the storage nodes corresponding to the characters which are sorted at the last t bits are deleted, so that the storage space is saved.
In addition, in the using process, the using frequency of each character in the first index array and the second index array is updated according to the displaying frequency of each character, and the using frequency is used as a basis for deleting the storage node in the subsequent process.
According to the display method of the instrument panel characters provided by the embodiment of the invention, the bitmap information of the characters is stored in the cached bitmap chain table, the first index array comprising the attribute information of the characters and the node addresses of the bitmap chain table is set for management, and the bitmap information is searched in the first index array according to the attribute information of the target characters under the condition that the target characters need to be displayed, so that the bitmap information does not need to be generated every time, the expense of a processor is saved, and the display efficiency of the characters is improved.
The following describes the display device for dashboard characters provided by the present invention, and the display device for dashboard characters described below and the display method for dashboard characters described above can be referred to correspondingly.
The embodiment of the invention discloses a display device of instrument panel characters, which is shown in figure 4 and comprises the following components:
the bitmap information determining module 401 is configured to determine bitmap information of a character to be displayed, and store the bitmap information of the character to be displayed in a cached bitmap linked list;
a first index array generating module 402, configured to generate a first index array according to the attribute information of the character to be displayed and the node address of the bitmap linked list;
a searching module 403, configured to search in the first index array according to the attribute information of the target character;
a first processing module 404, configured to, if attribute information of a character corresponding to the attribute information of the target character is found, read corresponding bitmap information from the bitmap chain table according to a bitmap chain table node address of the character and display the bitmap information;
the second processing module 405 is configured to create and display bitmap information of the target character if the attribute information of the character corresponding to the attribute information of the target character is not found, store the created bitmap information of the target character in the bitmap linked list, and update the first index array.
Optionally, the bitmap linked list includes a plurality of storage nodes, and the attribute information of the character to be displayed includes a character code;
the bitmap information determining module 401 is specifically configured to: respectively storing the bitmap information of the characters to be displayed in a plurality of cached storage nodes;
the first index array generating module 402 is specifically configured to: and taking the attribute information of each character to be displayed and the node address of the bitmap linked list as array elements, and sequencing the array elements according to the size of the character code to generate a first index array.
Optionally, the first processing module 404 is specifically configured to: searching a corresponding storage node in the bitmap linked list according to the node address of the bitmap linked list of the character, and reading and displaying corresponding bitmap information in the storage node;
the second processing module 405 is specifically configured to: adding a storage node in the bitmap chain table according to the bitmap information of the target character, and storing the bitmap information of the target character in the added storage node;
and updating the first index array according to the attribute information of the target character and the node address of the bitmap linked list of the target character.
Optionally, the attribute information of the character to be displayed includes a frequency of use of the character;
the device further comprises:
and the second index array generating module is used for taking the attribute information of each character to be displayed and the node address of the bitmap linked list as array elements, and sequencing the array elements according to the use frequency of the characters to generate a second index array.
Optionally, the apparatus further comprises:
and the third processing module is used for deleting the storage nodes corresponding to the characters with the use frequency less than the second threshold according to the second index array under the condition that the number of the stored characters reaches the first threshold, and updating the second index array and the first index array.
Optionally, the apparatus further comprises: and the frequency updating module is used for updating the use frequency of each character in the second index array according to the display frequency of each character.
Optionally, the apparatus further comprises: and the second index array updating module is used for updating the second index array according to the use frequency of the created characters and the node addresses of the bitmap linked list of the characters under the condition that the created bitmap information of the target characters is stored in the bitmap linked list.
According to the display device for the characters of the instrument panel, the bitmap information of the characters to be displayed is stored in the cached bitmap chain table, the first index array is generated according to the attribute information of the characters to be displayed and the node addresses of the bitmap chain table, then the bitmap information of the characters is stored in the cached bitmap chain table, the first index array comprising the attribute information of the characters and the node addresses of the bitmap chain table is set for management, and under the condition that the target characters need to be displayed, the bitmap information is searched in the first index array according to the attribute information of the target characters, so that the bitmap information does not need to be generated every time, the expense of a processor is saved, and the display efficiency of the characters is improved.
Fig. 5 illustrates a physical structure diagram of an electronic device, which may include, as shown in fig. 5: a processor (processor)510, a communication Interface (Communications Interface)520, a memory (memory)530 and a communication bus 540, wherein the processor 510, the communication Interface 520 and the memory 530 communicate with each other via the communication bus 540. Processor 510 may invoke logic instructions in memory 530 to perform a method for displaying dashboard characters, comprising:
determining bitmap information of characters to be displayed, and storing the bitmap information of the characters to be displayed in a cached bitmap linked list;
generating a first index array according to the attribute information of the character to be displayed and the node address of the bitmap linked list;
searching in the first index array according to the attribute information of the target character;
if the attribute information of the character corresponding to the attribute information of the target character is found, reading the corresponding bitmap information from the bitmap chain table according to the node address of the bitmap chain table of the character for displaying;
and if the attribute information of the character corresponding to the attribute information of the target character is not found, creating and displaying bitmap information of the target character, storing the created bitmap information of the target character in the bitmap chain table, and updating the first index array.
Furthermore, the logic instructions in the memory 530 may be implemented in the form of software functional units and stored in a computer readable storage medium when the software functional units are sold or used as independent products. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
In another aspect, the present invention also provides a computer program product comprising a computer program stored on a non-transitory computer-readable storage medium, the computer program comprising program instructions, which when executed by a computer, enable the computer to perform a method for displaying dashboard characters provided by the above methods, including:
determining bitmap information of characters to be displayed, and storing the bitmap information of the characters to be displayed in a cached bitmap linked list;
generating a first index array according to the attribute information of the character to be displayed and the node address of the bitmap linked list;
searching in the first index array according to the attribute information of the target character;
if the attribute information of the character corresponding to the attribute information of the target character is found, reading the corresponding bitmap information from the bitmap chain table according to the node address of the bitmap chain table of the character for displaying;
and if the attribute information of the character corresponding to the attribute information of the target character is not found, creating and displaying bitmap information of the target character, storing the created bitmap information of the target character in the bitmap chain table, and updating the first index array.
In still another aspect, the present invention further provides a non-transitory computer-readable storage medium, on which a computer program is stored, the computer program being implemented by a processor to perform the method for displaying dashboard characters provided above, including:
determining bitmap information of characters to be displayed, and storing the bitmap information of the characters to be displayed in a cached bitmap linked list;
generating a first index array according to the attribute information of the character to be displayed and the node address of the bitmap linked list;
searching in the first index array according to the attribute information of the target character;
if the attribute information of the character corresponding to the attribute information of the target character is found, reading the corresponding bitmap information from the bitmap chain table according to the node address of the bitmap chain table of the character for displaying;
and if the attribute information of the character corresponding to the attribute information of the target character is not found, creating and displaying bitmap information of the target character, storing the created bitmap information of the target character in the bitmap chain table, and updating the first index array.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A method for displaying dashboard characters, comprising:
determining bitmap information of characters to be displayed, and storing the bitmap information of the characters to be displayed in a cached bitmap linked list;
generating a first index array according to the attribute information of the character to be displayed and the node address of the bitmap linked list;
searching in the first index array according to the attribute information of the target character;
if the attribute information of the character corresponding to the attribute information of the target character is found, reading the corresponding bitmap information from the bitmap chain table according to the node address of the bitmap chain table of the character for displaying;
and if the attribute information of the character corresponding to the attribute information of the target character is not found, creating and displaying bitmap information of the target character, storing the created bitmap information of the target character in the bitmap chain table, and updating the first index array.
2. The method for displaying dashboard characters according to claim 1, wherein the bitmap linked list comprises a plurality of storage nodes, and the attribute information of the characters to be displayed comprises character codes;
storing the bitmap information of the character to be displayed in a cached bitmap linked list, wherein the bitmap information comprises: respectively storing the bitmap information of the characters to be displayed in a plurality of cached storage nodes;
generating a first index array according to the attribute information of the character to be displayed and the node address of the bitmap linked list, wherein the method comprises the following steps:
and taking the attribute information of each character to be displayed and the node address of the bitmap linked list as array elements, and sequencing the array elements according to the size of the character code to generate a first index array.
3. The method for displaying dashboard characters according to claim 2, wherein reading corresponding bitmap information from the bitmap chain table for display according to the bitmap chain table node address of the character comprises:
searching a corresponding storage node in the bitmap linked list according to the node address of the bitmap linked list of the character, and reading and displaying corresponding bitmap information in the storage node;
storing the created bitmap information of the target character in the bitmap chain table, and updating the first index array, wherein the updating comprises:
adding a storage node in the bitmap chain table according to the bitmap information of the target character, and storing the bitmap information of the target character in the added storage node;
and updating the first index array according to the attribute information of the target character and the node address of the bitmap linked list of the target character.
4. The method for displaying dashboard characters according to claim 2, wherein the attribute information of the characters to be displayed includes usage frequency of the characters;
the method further comprises the following steps:
and taking the attribute information of each character to be displayed and the node address of the bitmap linked list as array elements, and sequencing the array elements according to the use frequency of the characters to generate a second index array.
5. The method of displaying dashboard characters as recited in claim 4, further comprising:
and under the condition that the number of the stored characters reaches a first threshold value, deleting the storage nodes corresponding to the characters with the use frequency less than a second threshold value according to a second index array, and updating the second index array and the first index array.
6. The method of displaying dashboard characters as recited in claim 4, further comprising:
and updating the use frequency of each character in the second index array according to the display frequency of each character.
7. The method for displaying dashboard characters according to claim 4, wherein in case of storing bitmap information of the created target character in the bitmap linked list, the method further comprises:
and updating the second index array according to the created use frequency of the characters and the bitmap linked list node addresses of the characters.
8. A display device for dashboard characters, comprising:
the bitmap information determining module is used for determining bitmap information of characters to be displayed and storing the bitmap information of the characters to be displayed in a cached bitmap linked list;
the first index array generating module is used for generating a first index array according to the attribute information of the character to be displayed and the node address of the bitmap linked list;
the searching module is used for searching in the first index array according to the attribute information of the target character;
the first processing module is used for reading and displaying the corresponding bitmap information in the bitmap chain table according to the bitmap chain table node address of the character if the attribute information of the character corresponding to the attribute information of the target character is found;
and the second processing module is used for creating and displaying bitmap information of the target character if the attribute information of the character corresponding to the attribute information of the target character is not found, storing the created bitmap information of the target character in the bitmap linked list, and updating the first index array.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the steps of the method for displaying dashboard characters according to any of claims 1 to 7 when executing said program.
10. A non-transitory computer readable storage medium, on which a computer program is stored, the computer program, when being executed by a processor, implementing the steps of the method for displaying dashboard characters according to any one of claims 1 to 7.
CN202110742433.4A 2021-07-01 2021-07-01 Method and device for displaying characters of instrument panel Pending CN113183759A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110742433.4A CN113183759A (en) 2021-07-01 2021-07-01 Method and device for displaying characters of instrument panel

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110742433.4A CN113183759A (en) 2021-07-01 2021-07-01 Method and device for displaying characters of instrument panel

Publications (1)

Publication Number Publication Date
CN113183759A true CN113183759A (en) 2021-07-30

Family

ID=76976837

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110742433.4A Pending CN113183759A (en) 2021-07-01 2021-07-01 Method and device for displaying characters of instrument panel

Country Status (1)

Country Link
CN (1) CN113183759A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114254923A (en) * 2021-12-22 2022-03-29 中国长江三峡集团有限公司 PLC control flow generation method and system based on OPCUA
CN114690978A (en) * 2022-04-25 2022-07-01 惠州汇能精电科技有限公司 Meter head display method and device for hybrid energy storage power supply
CN116320648A (en) * 2022-11-14 2023-06-23 北京奇艺世纪科技有限公司 Bullet screen drawing method and device and electronic equipment
CN117492577A (en) * 2023-12-29 2024-02-02 深圳山灵数码科技发展有限公司 Lightweight word stock display method and device, microprocessor and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6967689B1 (en) * 2001-05-08 2005-11-22 Pixelworks, Inc. System and method for providing a variable character size in an on-screen display application
CN101308502A (en) * 2008-04-01 2008-11-19 南靖万利达科技有限公司 Method for rapidly retrieving picture
CN104199628A (en) * 2014-08-07 2014-12-10 北京配天技术有限公司 Character display method and system based on QT Embedded system
CN110287160A (en) * 2019-05-31 2019-09-27 广东睿江云计算股份有限公司 A kind of spatial cache method for cleaning and device
CN112395529A (en) * 2019-08-14 2021-02-23 腾讯科技(深圳)有限公司 Page loading method, device, equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6967689B1 (en) * 2001-05-08 2005-11-22 Pixelworks, Inc. System and method for providing a variable character size in an on-screen display application
CN101308502A (en) * 2008-04-01 2008-11-19 南靖万利达科技有限公司 Method for rapidly retrieving picture
CN104199628A (en) * 2014-08-07 2014-12-10 北京配天技术有限公司 Character display method and system based on QT Embedded system
CN110287160A (en) * 2019-05-31 2019-09-27 广东睿江云计算股份有限公司 A kind of spatial cache method for cleaning and device
CN112395529A (en) * 2019-08-14 2021-02-23 腾讯科技(深圳)有限公司 Page loading method, device, equipment and storage medium

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114254923A (en) * 2021-12-22 2022-03-29 中国长江三峡集团有限公司 PLC control flow generation method and system based on OPCUA
CN114690978A (en) * 2022-04-25 2022-07-01 惠州汇能精电科技有限公司 Meter head display method and device for hybrid energy storage power supply
CN116320648A (en) * 2022-11-14 2023-06-23 北京奇艺世纪科技有限公司 Bullet screen drawing method and device and electronic equipment
CN117492577A (en) * 2023-12-29 2024-02-02 深圳山灵数码科技发展有限公司 Lightweight word stock display method and device, microprocessor and electronic equipment
CN117492577B (en) * 2023-12-29 2024-04-16 深圳山灵数码科技发展有限公司 Lightweight word stock display method and device, microprocessor and electronic equipment

Similar Documents

Publication Publication Date Title
CN113183759A (en) Method and device for displaying characters of instrument panel
CN108228799B (en) Object index information storage method and device
CN105589894B (en) Document index establishing method and device and document retrieval method and device
US10540360B2 (en) Identifying relationship instances between entities
CN111143368A (en) Relational database data comparison method and system
EP3955256A1 (en) Non-redundant gene clustering method and system, and electronic device
US8407255B1 (en) Method and apparatus for exploiting master-detail data relationships to enhance searching operations
CN112015819A (en) Data updating method, device, equipment and medium for distributed graph database
CN111858581A (en) Page query method and device, storage medium and electronic equipment
CN112506651B (en) Method and equipment for data operation in large-data-volume environment
CN111884659B (en) Compression method and device of FST data
CN105786478A (en) Data processing method and device
CN111190966A (en) Large-scale knowledge graph visualization method and system based on LPA algorithm
CN110263017B (en) Key value storage method and device based on spherical grid remote sensing data file set
CN111858609A (en) Fuzzy query method and device for block chain
CN116932838B (en) Database-based data query, update and storage method and device
CN111291055B (en) Data storage method and device, data processing method and device, and electronic device
CN117729176B (en) Method and device for aggregating application program interfaces based on network address and response body
CN112181995B (en) Data processing method, device, equipment and storage medium of data table
CN115203490B (en) Query method and device for data types of List List container in graph database
CN110309127B (en) Data processing method and device and electronic equipment
CN109947775B (en) Data processing method and device, electronic equipment and computer readable medium
CN114265848A (en) Data comparison retrieval method and device, electronic equipment and storage medium
CN117729176A (en) Method and device for aggregating application program interfaces based on network address and response body
CN116028448A (en) Identification code determining method, device, equipment and storage medium of electronic file

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210730