A graphical display method and a graphical display device

By employing a display application scheme with two hardware layers on a single-core ARM processor and using efficient graphics algorithms, the problem of high cost of industrial control computers has been solved, achieving cost reduction and precise control of memory capacity, thus meeting the needs of graphics display devices.

CN117608505BActive Publication Date: 2026-11-20盈帜科技(常州)有限公司
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202311374198.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-10-20
Publication Date
2026-11-20
Estimated Expiration
2043-10-20

AI Technical Summary

Technical Problem

Existing industrial control computer solutions suffer from high equipment costs, especially in Linux-based ARM platform industrial control computer solutions. Multi-core ARM processors require external large-capacity DDR and storage, which increases costs, while most graphics display devices do not require such large storage capacity.

Method used

A graphical display method based on a single-core ARM processor is adopted. By utilizing a display engine and efficient graphics algorithms, a hybrid display is achieved through two hardware layers, which reduces the difficulty of hardware design and precisely controls memory usage, thereby reducing the storage capacity requirements.

Benefits of technology

This solution achieves a 10% to 20% cost reduction for industrial control computers based on Linux and ARM platforms, while optimizing memory storage capacity control and reducing the cost of graphics display devices while meeting product requirements.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117608505B_ABST
    Figure CN117608505B_ABST
Patent Text Reader

Abstract

The application discloses a kind of graphical display method and graphical display device, belong to embedded graphics display technical field, including the following steps, 1) in display engine establishment function operation interface hardware layer and graphical display hardware layer;2) on function operation interface hardware layer and graphical display hardware layer, execute graphical display function;3) function operation interface hardware layer and graphical display hardware layer are integrated by the display engine and are displayed to display device;Function operation interface hardware layer and graphical display hardware layer are arranged in upper and lower layers;The function operation interface hardware layer is used to display interactive image for user operation, and the graphical display hardware layer is used to display device, device state, background.The display application scheme and efficient graphics calculation method of the present application are realized by 2 hardware layers with low-cost hardware, which reduces the cost of embedded graphics display device products.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of embedded graphics display technology, and more particularly to a graphical display method and a graphics display device. Background Technology

[0002] The demand for graphic display devices in the industrial control market is increasing, and currently common products generally adopt the following two solutions.

[0003] The first solution is a Windows-based industrial PC using an Intel platform. This solution is based on Intel processors (such as the J1900) developed for the industrial PC market and Microsoft's Windows operating system. Its advantages include widespread operating system availability, ease of use, ample memory and hard drive space, and powerful GPU processing capabilities, commonly used in high-end graphics display devices. The GPU accelerates graphics calculations and displays, making it ideal for solving graphical display needs. However, its disadvantages include an open system, susceptibility to viruses, security vulnerabilities, and the potential for sensitive data leakage. Furthermore, it requires purchasing pre-built motherboards, memory modules, hard drives, and other hardware, making it difficult to quickly implement the interface customization requirements common in embedded products, resulting in a very high overall product price.

[0004] The second solution is a Linux-based industrial PC with an ARM platform. This solution is based on a multi-core ARM processor and an embedded Linux operating system, where the ARM processor needs to integrate a GPU. This solution is very similar to the Windows-based industrial PC with an Intel platform, but the circuit board can be designed according to product requirements, effectively controlling costs. However, its disadvantages are also significant. First, multi-core ARM processors and peripherals mostly communicate using high-speed signals, requiring 4 or more layers of PCB design, leading to increased hardware design complexity. Second, multi-core ARM processors generally do not integrate SDRAM or DDR internally, but instead use external DDR (usually above 256MB) to meet the memory requirements of GPUs, graphics open-source libraries, etc., increasing costs. Third, multi-core ARM processors generally require external storage (usually above 256MB), which is expensive, while most graphics display devices do not require such large storage capacity, resulting in wasted costs.

[0005] It is evident that both commonly used solutions currently suffer from high equipment costs. With the widespread use of graphics display devices, cost is gradually becoming the biggest concern for users. Summary of the Invention

[0006] The present invention aims to provide a graphical display method and a graphical display device, which is based on a single-core ARM processor with a display engine and utilizes the high-efficiency graphics algorithm, combined with the display engine and its hardware layers to automatically perform high-speed mixed display to solve the performance problem of graphics display.

[0007] To achieve the above objectives, the technical solution of the present invention is as follows:

[0008] A graphical display method includes the following steps: Step S1, establishing a functional operation interface hardware layer and a graphical display hardware layer in a display engine; Step S2, executing graphical display functions on the functional operation interface hardware layer and the graphical display hardware layer; Step S3, displaying the functional operation interface hardware layer and the graphical display hardware layer on a display device after being integrated by the display engine; the functional operation interface hardware layer and the graphical display hardware layer are arranged in a stacked manner, with the functional operation interface hardware layer closer to the user and the graphical display hardware layer farther from the user; the functional operation interface hardware layer is used to display interactive images for user operation, and the graphical display hardware layer is used to display the device, device status, and background.

[0009] In the above graphical display method, the operation interfaces of the functional operation interface hardware layer and the graphical display hardware layer include an interface for requesting and allocating a layer, an interface for updating a hardware layer, and an interface for releasing a hardware layer.

[0010] The execution steps of the layer allocation interface application include: Step S11, calculating the required buffer size based on the layer width, layer height, and the number of bytes per ARGB pixel, where the layer z-axis index determines the stacking order of layers; Step S12, allocating a hardware layer data structure space in the heap, storing the layer's X-axis start coordinates, Y-axis start coordinates, layer width, layer height, layer z-axis index, display buffer address, and operation buffer address in the hardware layer data structure, and setting the verification field to 0xF0F1; Step S13, notifying the display engine to enable the hardware layer specified by the layer z-axis index; Step S14, returning the address of the hardware layer data structure allocated in the heap as the hardware layer handle value.

[0011] The execution steps of updating the hardware layer interface include: Step S21, converting the incoming hardware layer handle into a hardware layer data structure; Step S22, checking if the verification field is 0xF0F1, and exiting if they are not equal; Step S23, checking the number of failed regions in the failed region list, and if the number of failed regions is 0, copying the buffer completely to the display buffer pointed to by the hardware layer data structure, and refreshing the image data of the entire visible area; Step S24, if the number of failed regions is greater than 0, retrieving the information of each failed region one by one, and copying the image data corresponding to the failed region on the buffer to the same area of ​​the display buffer pointed to by the hardware layer data structure; Step S25, notifying the display engine that the display buffer has been updated, and immediately refreshing the display content according to the layer's X-axis start coordinates, Y-axis start coordinates, layer width, and layer height parameters in the current hardware layer data structure.

[0012] The execution steps of releasing the hardware layer interface include: step S31, converting the incoming hardware layer handle into a hardware layer data structure; step S32, checking whether the verification field is 0xF0F1, and exiting if they are not equal; step S33, releasing the drawing buffer; and step S34, releasing the display buffer.

[0013] The initialization steps for the graphical display function using the operation interface include: Step S41, obtaining the pixel width of the current display device as the layer width; Step S42, obtaining the pixel height of the current display device as the layer height; Step S43, setting the background color of the display engine; Step S44, requesting layer allocation for the function operation interface and obtaining the hardware layer handle of the function operation interface; Step S45, requesting layer allocation for the device status refresh function and obtaining the hardware layer handle of the device status; Step S46, requesting layer allocation for the device function and obtaining the hardware layer handle of the device; Step S47, requesting layer allocation for the background function and obtaining the hardware layer handle of the device.

[0014] The steps for updating the hardware layer of the functional operation interface include: step S51, checking whether there are any failed areas that need to be updated in the functional operation interface management module; if not, the operation ends; step S52, obtaining the drawing buffer and failed area list of the functional operation interface module; step S53, performing the update of the hardware layer area; and step S54, the functional operation interface module marking that all currently changed failed areas have been updated.

[0015] The steps for updating the graphical display hardware layer include: Step S61, setting the full-area refresh flag to 0; Step S62, setting the global failure buffer list to empty; Step S63, checking if there are any unupdated failure areas in the background module; if not, proceeding to Step S65; Step S64, if there are unupdated failure areas in the background module, updating the graphical display buffer using the background module's drawing function, and setting the full-area refresh flag to 1; Step S65, checking the full-area refresh flag; if the full-area refresh flag is equal to 1, completely updating the graphical display buffer using the device display module's drawing function, and proceeding to Step S67; Step S66, executing the setting... The backup module performs a partial update check function. If changes are found, the graphical display buffer is partially updated, and the failure area list of the device display module is geometrically merged with the global failure buffer list. In step S67, the full area refresh flag is checked. If the full area refresh flag is equal to 1, the graphical display buffer is completely updated using the drawing function of the device status display module, and the process jumps to step S69. In step S68, the partial update check function of the device status display module is executed. If changes are found, the graphical display buffer is partially updated, and the failure area list of the device status display module is geometrically merged with the global failure buffer list. In step S69, the hardware layer area is updated.

[0016] In the above-described graphical display method, the execution of the graphical display function includes specifying a background color, specifying a background bitmap or vector image, specifying a device to display a device image at a specific two-dimensional coordinate position on the display device, dynamically specifying the current state of the display device and displaying a corresponding device status image at the specific two-dimensional coordinate position on the display device, panning the graphical display area, and scaling the graphical display area.

[0017] And a graphic display device that uses the graphic display method described above.

[0018] Beneficial effects: The graphical display method and device of this invention reduce the cost of embedded graphical display devices by implementing a display application scheme with two hardware layers using low-cost hardware and efficient graphics computing methods. It achieves similar performance at 10% to 20% of the cost of a Linux plus ARM platform industrial control computer solution, significantly reducing the cost of graphical display devices. By combining efficient graphics algorithms, memory usage can be precisely controlled, fully meeting product requirements. By not using Linux, more precise control over memory storage capacity can be achieved, allowing selection of appropriate memory capacity based on the final product development results, thus optimizing product costs.

[0019] To make the above-mentioned features and advantages of the invention more apparent and understandable, specific embodiments are described below, and detailed descriptions are provided in conjunction with the accompanying drawings. Attached Figure Description

[0020] Figure 1 This is a functional diagram of the display engine and hardware layers.

[0021] Figure 2 This is a schematic diagram illustrating the general display effect of a graphics display device.

[0022] Figure 3 This is a functional diagram illustrating how the display function of a graphics display device is divided into four hardware layers.

[0023] Figure 4 This is a functional diagram illustrating how the display function of a graphics display device is divided into two hardware layers. Detailed Implementation

[0024] To make the objectives and technical solutions of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. Based on the described embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention. Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance. The directional terms mentioned in the following embodiments, such as up, down, left, right, front, back, bottom, and top, are only for reference to the accompanying drawings. Therefore, the directional terms used are for illustrative purposes and not for limiting the present invention.

[0025] In practical use, the following are the basic requirements for graphic display devices when performing graphical display functions: 1. Support for specifying a background color (i.e., the color of the graphical display area when there is no displayed content). 2. Support for specifying a background bitmap or vector graphic (vector graphics are mostly architectural floor plans). 3. Support for specifying the device to display an image at a specific two-dimensional coordinate position on the display device. 4. Support for dynamically specifying the current state of the device and displaying the corresponding device status image at a specific two-dimensional coordinate position on the display device. 5. Support for panning and zooming the graphical display area.

[0026] The Display Engine integrated in ARM chips is primarily responsible for the unified management of hardware layers. Display engines are generally used in video player products. Display engines usually support two, four, or more hardware layers, which are stacked in a layered structure, with the top layer closest to the user and the bottom layer furthest from the user. Figure 1 To illustrate the functionality of the display engine and hardware layers, such as Figure 1As shown, when using 4 hardware layers, hardware layers 0 to 3 are stacked from bottom to top, with hardware layer 3 being closest to the user and hardware layer 0 being furthest from the user. Hardware layers 0 to 3 are integrated by the display engine and displayed on the display device.

[0027] Hardware layers support ARGB format pixel image data, where each pixel uses 4 bytes to store the A, R, G, and B channels of the image data (each byte's value ranges from 0 to 255). The values ​​of the R, G, and B channels together determine the color of a pixel, while the A channel value determines the pixel's transparency (0 for completely transparent, 255 for opaque). To make a pixel outside the upper layer fully visible to the user, the A channel values ​​of pixels in the same position on other layers overlaying that layer are set to completely transparent (i.e., the A channel value is set to 0). Each hardware layer has two attributes: layer width and layer height. The layer width represents the number of pixels forming a row on the display device, and the layer height represents the number of pixels forming a column on the display device. The layer width and layer height are generally set to the same as the pixel width and pixel height of the display device. Figure 2 This is a schematic diagram of the general display effect of a graphics display device. In the example, except for the area where the image is drawn, the A channel value of other pixels is 0. Therefore, the image after the superposition of the images of hardware layer 0 to hardware layer 3 can be displayed on the display device.

[0028] Each hardware layer requires two display buffers for alternating display: one for the current display and the other for user-modified content. By sending hardware control commands to the display engine, the engine can automatically refresh the display buffers of the specified hardware layer and complete the data transfer to the display device. Therefore, the memory requirement for storing display data in a hardware layer is calculated as follows:

[0029] Layer cache requirement = Layer width × Layer height × Number of bytes per pixel

[0030] Single hardware layer cache requirement = 2 × layer cache requirement

[0031] Total memory usage of all hardware layers = Number of enabled hardware layers × Cache requirement of a single hardware layer

[0032] Some display engines allow enabling and specifying a background color that is independent of all hardware layers—that is, the color seen on the display device when all layers are disabled or when all enabled layers have pixels that are completely transparent.

[0033] Generally, the steps for modifying the display content of a single hardware layer through regular memory operations and displaying it on a display device are as follows.

[0034] Step A1: Obtain the drawing buffer for the specified hardware layer.

[0035] Step A2: Complete all image drawing operations in the drawing buffer.

[0036] Step A3: Copy the pixel data from the drawing buffer to the display buffer.

[0037] Step A4: Send a hardware layer memory update command to the display engine.

[0038] Step A5: The display engine performs the operation to activate the display cache for the hardware layer.

[0039] In step A6, the display engine overlays the data from multiple layers and sends image data in a predefined format to the display device.

[0040] Step A7: The display device displays the image data.

[0041] Steps A2 and A3 in the above operation steps are the key to affecting performance.

[0042] The general drawing process for a scene that supports dynamically changing graphical display functions is as follows.

[0043] Step B1 sets each pixel in the drawing buffer to a specific background color.

[0044] Step B2: Draw a background image (including vector graphics) representing the geographical location or scene of the device in the drawing buffer.

[0045] Step B3: Draw the image of each device in the drawing buffer according to the two-dimensional screen coordinates of each device.

[0046] Step B4: Draw a device state image for each device state in the drawing buffer based on the two-dimensional screen coordinates of each device state.

[0047] Step B5: Draw the functional operation interface in the drawing buffer.

[0048] Step B6: Submit the drawing buffer to the display device for display (displaying the user interface, which can be used in conjunction with a touch screen to enable user interaction).

[0049] The implementation logic is simple; the same set of logic is used for all operations that require refreshing the graphical display area, such as initialization, panning, scaling, and changes in device state. This implementation logic achieves good execution results on high-performance multi-core ARM and x86 chips, but it leads to serious problems such as screen stuttering and inefficient system operation on low-cost single-core ARM chips.

[0050] The amount of data processed in the general drawing process is now measured using the refresh rate ratio formula; a smaller refresh rate ratio indicates faster processing speed. The formula is as follows:

[0051] Refresh Pixel Ratio = Total Number of Pixels Rendered ÷ Number of Pixels in a Single Display Buffer Number of Pixels in a Single Display Buffer = Hardware Layer Width × Hardware Layer Height

[0052] Specifically, a refresh rate of 0 pixels means there is no need for refreshing the current display and no CPU resources are required. A refresh rate of 1.0 means the time to refresh the currently displayed data is approximately equal to the time to refresh the entire screen. A refresh rate greater than 1.0 indicates that the same display area is being refreshed repeatedly.

[0053] The total number of pixels in a typical drawing process = number of display buffer pixels (i.e., resetting each pixel in the buffer to a specific background color) + number of background image pixels (i.e., drawing the background image representing the device's geographical location or scene) + number of devices × number of device image pixels (i.e., drawing each device image) + number of device states × number of device state image pixels (i.e., drawing the state image of each device with a state).

[0054] The typical refresh rate during rendering is calculated as follows: (Display cache pixels + Background image pixels + Number of devices × Device image pixels + Number of device status images × Device status image pixels) ÷ Display cache pixels

[0055] The refresh pixel ratio result obtained by the above formula for the general drawing process is always greater than or equal to 1.0.

[0056] When using hardware layers based on the Display Engine to implement the graphical display function of a graphics display device, the function of the hardware layer must first be planned according to the functional requirements of the general product and the hardware layer merging capability of the Display Engine. Figure 3 This is a functional diagram illustrating how the display functions of a graphics display device are divided into four hardware layers. (For example...) Figure 3As shown, if the display engine supports the mixed display of 4 hardware layers, the hardware layers can be functionally divided from top to bottom as follows: Layer 1, functional operation interface hardware layer; Layer 2, device status hardware layer; Layer 3, device hardware layer; and Layer 4, background hardware layer.

[0057] Figure 4 This is a functional diagram illustrating how the display functions of a graphics display device are divided into two hardware layers. (For example...) Figure 4 As shown, if the display engine only supports the combined display of two hardware layers, the hardware layers can be functionally divided into two layers from top to bottom: Layer 1, the functional operation interface hardware layer, and Layer 2, the graphical display hardware layer. Layer 1, the functional operation interface hardware layer, is used to display interactive images for user operation, while Layer 2, the graphical display hardware layer, is used to display content including the device, device status, and background.

[0058] Therefore, it is evident that the graphical functionality of a conventional graphics display device requires a maximum of four hardware layers, which are generally supported by low-cost single-core ARM chips with integrated display engines on the market. The operational interfaces required for these different hardware layers can be abstracted into the following three:

[0059] 1. Request layer allocation interface (layer X-axis start coordinate, layer Y-axis start coordinate, layer width, layer height, layer Z-axis index, [buffer address]); Return value: hardware layer handle;

[0060] 2. Update the hardware layer interface (layer handle, buffer address, list of failed regions);

[0061] 3. Release the hardware layer interface (layer handle).

[0062] The execution flow of the above three interfaces is as follows:

[0063] The execution flow for requesting and allocating layer interfaces:

[0064] Step C1, Start;

[0065] Step C2 calculates the required buffer size based on the layer width, layer height, and the number of bytes per ARGB pixel. Two buffers need to be allocated here: one for the display portion needs to be allocated in a Direct Memory Access (DMA) memory area, and the other, the drawing buffer for user drawing operations, needs to be allocated in the heap. The layer's z-axis index determines the stacking order between layers. In this patent, it is defined as: the larger the z-axis index, the closer to the user; the smaller the z-axis index, the farther away from the user. Layers with larger z-axis indexes overlap layers with those with smaller z-axis indexes.

[0066] [Buffer Address] indicates that a pointer to a memory image ARGB data space buffer allocated in the heap that can be manipulated at any time will be given to the user, so that the user can perform graphics operations on the buffer as needed;

[0067] Step C3: Allocate a hardware layer data structure space in the heap, and store the above layer's X-axis start coordinates, Y-axis start coordinates, layer width, layer height, layer z-axis index, display buffer address, and operation buffer address in the hardware layer data structure, and set the verification field to 0xF0F1;

[0068] Step C4: Notify the Display Engine to enable the hardware layer specified by the layer's z-axis index number;

[0069] Step C5: Return the address of the hardware layer data structure allocated in the heap as the hardware layer handle value;

[0070] Step C6, End.

[0071] The meaning of each parameter in the update hardware layer interface is as follows: the layer handle represents the handle returned by the request layer allocation interface; the buffer address represents the buffer address returned by the request layer allocation interface; the list of failed regions represents which regions in the image data described by the buffer address are failed. Each region is a rectangular region composed of four parameters, namely the region start X coordinate, the region start Y coordinate, the region width, and the region height.

[0072] Execution flow of the hardware layer update interface by region:

[0073] Step D1, Start;

[0074] Step D2: Convert the incoming hardware layer handle into a hardware layer data structure;

[0075] Step D3: Check if the verification field is 0xF0F1. If they are not equal, exit.

[0076] Step D4: Check the number of failed regions in the failed region list. If the number of failed regions is 0, copy the buffer completely to the display buffer pointed to in the hardware layer data structure and refresh the image data of the entire visible area.

[0077] Step D5: If the number of failed regions is greater than 0, retrieve the information of each failed region one by one, and copy the image data corresponding to the failed region in the buffer to the same area of ​​the display buffer pointed to by the hardware layer data structure.

[0078] Step D6: Notify the display engine that the display buffer has been updated, and immediately refresh the display content based on the layer's X-axis start coordinates, Y-axis start coordinates, layer width, and layer height parameters in the current hardware layer data structure.

[0079] Step D7, End.

[0080] The execution flow for releasing the hardware layer:

[0081] Step E1, Begin;

[0082] Step E2: Convert the incoming hardware layer handle into a hardware layer data structure;

[0083] Step E3: Check if the validation field is 0xF0F1. If they are not equal, exit.

[0084] Step E4: Release the drawing buffer;

[0085] Step E5: Release the display buffer;

[0086] Step E6, End.

[0087] Assume the display engine supports 4 hardware layers, with the z-axis indices of the hardware layers from top to bottom being 3, 2, 1, and 0, respectively.

[0088] The initialization process for implementing the graphical display function using the above interface is as follows:

[0089] Step F1 to start;

[0090] Step F2: Obtain the pixel width of the current display device as the layer width;

[0091] Step F3: Obtain the pixel height of the current display device as the layer height;

[0092] Step F4: Set the display engine background color;

[0093] Step F5: Request the allocation of a layer for the functional operation interface (layer width, layer height, 3, [functional operation interface drawing buffer address]), and obtain the hardware layer handle of the functional operation interface;

[0094] Step F6: Request the allocation of a layer (layer width, layer height, 2, [device status drawing buffer address]) for the device status refresh function, and obtain the device status hardware layer handle;

[0095] Step F7: Assign a layer (layer width, layer width, 1, [device drawing buffer address]) to the device function execution request, and obtain the device hardware layer handle;

[0096] Step F8: Request a layer allocation for the background function (layer width, layer width, 0, [background layer buffer address]), and obtain the device hardware layer handle;

[0097] Step F9, End.

[0098] The process for updating the hardware layer in the user interface is as follows:

[0099] Step G1, Start;

[0100] Step G2: Check if there are any outdated or invalid areas in the function operation interface module. If not, proceed to step G6.

[0101] Step G3: Obtain the drawing buffer and failure area list of the functional operation interface module;

[0102] Step G4: Execute update hardware layer area (functional operation interface hardware layer handle, functional operation interface drawing buffer, functional operation interface invalid area list).

[0103] Step G5: All currently changed failure areas marked in the function operation interface module have been updated;

[0104] Step G6, End.

[0105] The process for updating the device status hardware layer is as follows:

[0106] Step H1, Start;

[0107] Step H2: Check if there are any unupdated failure areas in the device status management module. If not, proceed to step H6.

[0108] Step H3: The device status module refreshes the device status display buffer and the corresponding list of areas to be refreshed;

[0109] Step H4: Execute update hardware layer area (device state hardware layer handle, device state drawing buffer, device state invalid area list);

[0110] Step H5: The device status management module has updated all currently changed failure areas;

[0111] Step H6, End.

[0112] The process for updating the device hardware layer is as follows:

[0113] Step I1, Start;

[0114] Step I2: Check if there are any unupdated faulty areas in the device module. If not, proceed to step I6.

[0115] Step I3: The device module refreshes the device status buffer and the corresponding list of failed areas;

[0116] Step I4: Execute update hardware layer region (device hardware layer handle, device drawing buffer, device failure region list);

[0117] Step I5: The device module has updated all currently changed failure areas;

[0118] Step I6, End.

[0119] The process for updating the background hardware layer is as follows:

[0120] Step J1, Start;

[0121] Step J2: Check if there are any unupdated invalid areas in the background module. If not, proceed to step J6.

[0122] Step J3: The background module updates the background drawing buffer;

[0123] Step J4: Execute update hardware layer area (background hardware layer handle, background drawing buffer, null value);

[0124] Step J5: The background module markers indicate that all current changes have been updated;

[0125] Step J6, End;

[0126] The process of performing the magnification function:

[0127] Step K1, Begin;

[0128] Step K2: The device module executes the amplification processing logic;

[0129] Step K3: Execute the process to update the device hardware layer;

[0130] Step K4: The device status module executes amplification processing logic;

[0131] Step K5: Execute the process to update the device status hardware layer;

[0132] Step K6: The background module executes the magnification processing logic;

[0133] Step K7: Execute the process to update the background hardware layer;

[0134] Step K8, End.

[0135] The process for performing the zoom-out function:

[0136] Step L1, Begin;

[0137] Step L2: The device module executes the scaling-down processing logic;

[0138] Step L3: Execute the process to update the device hardware layer;

[0139] Step L4: The device status module executes the scaling-down processing logic;

[0140] Step L5: Execute the process to update the device status hardware layer;

[0141] Step L6: The background module executes the shrinking processing logic;

[0142] Step L7: Execute the process to update the background hardware layer;

[0143] Step L8, End.

[0144] The process of performing the translation function:

[0145] Step M1, Begin;

[0146] In step M2, the device module executes the translation processing logic;

[0147] Step M3: Execute the process to update the device hardware layer;

[0148] Step M4: The device status module executes the translation processing logic;

[0149] Step M5: Execute the process to update the device status hardware layer;

[0150] Step M6: The background module executes the translation processing logic;

[0151] Step M7: Execute the process to update the background hardware layer;

[0152] Step M8, End;

[0153] Based on the above update process, the refresh pixel ratio of each hardware layer can be calculated independently, as shown in the following formula.

[0154] The refresh pixel ratio of the hardware layer of the function operation interface = (the number of pixels of each function icon × the number of states updated this time) ÷ (the width of the hardware layer of the function operation interface × the height of the hardware layer of the function operation interface).

[0155] The refresh pixel ratio of the device status hardware layer = (the number of pixels of each device status icon × the number of device statuses updated this time) ÷ (the width of the device status hardware layer × the height of the device status hardware layer);

[0156] The refresh pixel ratio of the device hardware layer = (the number of pixels per device icon × the number of devices updated this time) ÷ (the width of the device hardware layer × the height of the device hardware layer);

[0157] The refresh pixel ratio of the background hardware layer is 1.0 if the background changes, and 0 otherwise;

[0158] As can be seen from the refresh pixel ratio data above, if the background of the graphical display changes, the overall refresh pixel ratio of the graphical display will always be >= 1.0; if the background of the graphical display does not change, the refresh pixel ratio is closely related to the specific change that occurs. When only one device status changes, the overall refresh pixel ratio = the number of pixels of the device status icon ÷ (device status hardware layer width × device status hardware layer height). Generally, the number of pixels of a single device status icon will be less than 1 / 20 of the display device size, at which point the refresh pixel ratio = 0.05.

[0159] If the display engine only supports two hardware layers, the z-axis indices of the hardware layers from top to bottom are 1 and 0, respectively.

[0160] The general initialization process for using the above interface to perform graphical display functions is as follows:

[0161] Step N1, Start;

[0162] Step N2: Obtain the pixel width of the current display device as the layer width;

[0163] Step N3: Obtain the pixel height of the current display device as the layer height;

[0164] Step N4, set the display engine background color (optional);

[0165] Step N5: Request the allocation of a layer for the functional operation interface (layer width, layer height, 1, [address of the functional operation interface drawing buffer]), and obtain the hardware layer handle of the functional operation interface;

[0166] Step N6: Request and allocate a layer (layer width, layer height, 0, [graphics display drawing buffer address]) for the graphical display function, and obtain the graphical display hardware layer handle;

[0167] Step N7, End.

[0168] The process for updating the hardware layer in the user interface is as follows:

[0169] Step O1, Start;

[0170] Step O2: Check if there are any invalid areas in the function operation interface management module that need to be updated. If not, proceed to step O6.

[0171] Step O3: Obtain the drawing buffer and failure area list of the functional operation interface module;

[0172] Step O4: Execute update hardware layer area (functional operation interface hardware layer handle, functional operation interface drawing buffer, functional operation interface invalid area list);

[0173] Step O5: All currently changed failure areas marked in the function operation interface module have been updated;

[0174] Step O6, End.

[0175] The process for updating the graphical display hardware layer is as follows:

[0176] Step P1, Start;

[0177] Step P2: Set the full-area refresh flag to 0;

[0178] Step P3: Set the global failure buffer list to empty;

[0179] Step P4: Check if there are any unupdated invalid areas in the background module. If not, proceed to step P6.

[0180] Step P5: If there are unupdated invalid areas in the background module, update the graphical display buffer using the drawing function of the background module, and set the full area refresh flag to 1.

[0181] Step P6: Check the full area refresh flag. If the full area refresh flag = 1, use the drawing function of the device display module to completely update the graphical display buffer and jump to step P8.

[0182] Step P7: Execute the local update check function of the device module. If there are changes, locally update the graphical display buffer and geometrically merge the failure area list of the device display module with the global failure buffer list.

[0183] Step P8: Check the full area refresh flag. If the full area refresh flag = 1, use the drawing function of the device status display module to completely update the graphical display buffer and jump to step P10.

[0184] Step P9: Execute the partial update check function of the device status display module. If there are changes, locally update the graphical display buffer and geometrically merge the failure area list of the device status display module with the global failure buffer list.

[0185] Step P10: Execute update hardware layer area (graphically display hardware layer handle, graphically display buffer, global invalid buffer list);

[0186] Step P11, End.

[0187] As can be seen from the above process, the update process implemented based on two hardware layers is more complex than that based on four hardware layers. However, through efficient graphics algorithms, the refresh pixel ratio of the two-hardware-layer implementation can be maintained at the same order of magnitude as that of the four-hardware-layer implementation. The PCB design of a single-core ARM chip is relatively simple, typically using a two-layer PCB design. Currently, low-priced ARM chips with display engines on the market often integrate 32MB, 64MB, or 128MB of DDR memory. Combined with efficient graphics algorithms, memory usage can be precisely controlled, fully meeting product requirements. By not using Linux, more precise control over memory capacity can be achieved, allowing selection of appropriate memory capacity based on the final product development results, thus optimizing product costs.

[0188] In summary, this invention reduces the cost of embedded graphics display devices by using a low-cost hardware solution with two hardware layers and an efficient graphics computing method. It achieves similar performance at 10% to 20% of the cost of a Linux plus ARM platform industrial control computer solution, thus greatly reducing the cost of graphics display devices.

[0189] Although the present invention has been disclosed above by way of embodiments, it is not intended to limit the present invention. Anyone skilled in the art can make some modifications and refinements without departing from the spirit and scope of the present invention. Therefore, the scope of protection of the present invention shall be determined by the appended claims.

Claims

1. A graphical display method, characterized in that, Includes the following steps: Step S1: Create a functional operation interface hardware layer and a graphical display hardware layer in the display engine; Step S2: Execute the graphical display function on the functional operation interface hardware layer and the graphical display hardware layer; Step S3: The functional operation interface hardware layer and the graphical display hardware layer are integrated by the display engine and displayed on the display device; The functional operation interface hardware layer and the graphical display hardware layer are arranged in an overlapping manner, with the functional operation interface hardware layer closer to the user and the graphical display hardware layer farther from the user. The functional operation interface hardware layer is used to display interactive images for user operation, and the graphical display hardware layer is used to display device images, device status, and background. In step S2, the graphical display hardware layer is updated. The update step includes: Step S61: Set the full-area refresh flag to 0; Step S62: Set the global failure buffer list to empty; Step S63: Check if there are any unupdated invalid areas in the background module. If not, proceed to step S65. Step S64: If there are unupdated invalid areas in the background module, update the graphical display buffer using the drawing function of the background module, and set the full area refresh flag to 1. Step S65: Check the full area refresh flag. If the full area refresh flag is equal to 1, use the drawing function of the device display module to completely update the graphical display buffer and jump to step S67. Step S66: Execute the local update check function of the device display module. If there are changes, locally update the graphical display buffer and geometrically merge the failure area list of the device display module with the global failure buffer list. Step S67: Check the full area refresh flag. If the full area refresh flag is equal to 1, use the drawing function of the device status display module to completely update the graphical display buffer and jump to step S69. Step S68: Execute the local update check function of the device status display module. If there are changes, locally update the graphical display buffer and geometrically merge the failure area list of the device status display module with the global failure buffer list. Step S69: Update the hardware layer region according to the global failure buffer list.

2. The graphical display method as described in claim 1, characterized in that, The operation interfaces of the functional operation interface hardware layer and the graphical display hardware layer include: an interface for requesting and allocating a layer, an interface for updating a hardware layer, and an interface for releasing a hardware layer.

3. The graphical display method as described in claim 2, characterized in that, The execution steps of the application and allocation layer interface include: Step S11: Calculate the required buffer size based on the layer width, layer height, and number of bytes per ARGB pixel. The layer z-axis index determines the stacking order between layers. Step S12: Allocate a hardware layer data structure space in the heap, and store the layer's X-axis start coordinate, Y-axis start coordinate, layer width, layer height, z-axis index, display buffer address, and operation buffer address in the hardware layer data structure, and set the verification field to 0xF0F1; Step S13: Notify the display engine to enable the hardware layer specified by the layer's z-axis index number; Step S14: Return the address of the hardware layer data structure requested in the heap as the hardware layer handle value.

4. The graphical display method as described in claim 3, characterized in that, The execution steps of the updated hardware layer interface include: Step S21: Convert the incoming hardware layer handle into a hardware layer data structure; Step S22: Check if the verification field is 0xF0F1. If they are not equal, exit. Step S23: Check the number of failed regions in the failed region list. If the number of failed regions is 0, copy the buffer completely to the display buffer pointed to in the hardware layer data structure and refresh the image data of the entire visible area. Step S24: If the number of failed regions is greater than 0, the information of each failed region is retrieved one by one, and the image data corresponding to the failed region in the buffer is copied to the same area of ​​the display buffer pointed to in the hardware layer data structure. Step S25: Notify the display engine that the display buffer has been updated, and immediately refresh the display content based on the layer's X-axis start coordinates, Y-axis start coordinates, layer width, and layer height parameters in the current hardware layer data structure.

5. The graphical display method as described in claim 3, characterized in that, The execution steps for releasing the hardware layer interface include: Step S31: Convert the incoming hardware layer handle into a hardware layer data structure; Step S32: Check if the verification field is 0xF0F1. If they are not equal, exit. Step S33: Release the drawing buffer; Step S34: Release the display buffer.

6. The graphical display method as described in claim 1, characterized in that, The graphical display method further includes updating the hardware layer of the functional operation interface mentioned in step S2, the updating step including: Step S51: Check if there are any invalid areas in the function operation interface module that need to be updated. If not, end the operation. Step S52: Obtain the drawing buffer and failure area list of the functional operation interface module; Step S53: Update the hardware layer area; Step S54: The functional operation interface module has updated all the currently changed failure areas.

7. The graphical display method as described in claim 1, characterized in that, The graphical display function includes specifying a background color, specifying a background bitmap or vector image, specifying the device to display a device image at a specific two-dimensional coordinate position on the display device, dynamically specifying the current state of the device and displaying the corresponding device status image at the specific two-dimensional coordinate position on the display device, panning the graphical display area, and scaling the graphical display area.

8. A graphical display device, characterized in that, Use the graphical display method as described in any one of claims 1-7.

Citation Information

Patent Citations

  • Display device and media asset zooming control method

    CN115190351A