Image display method and system for embedded device
By sending image data for each line sequentially through the main control chip in the embedded device, first sending the starting coordinates and then sending the color values of the coordinate points, the problem of severe resource consumption in high-resolution screen displays is solved, achieving a smooth display effect.
Patent Information
- Application Number
- CN202211305252.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-10-24
- Publication Date
- 2026-02-24
- Estimated Expiration
- 2042-10-24
AI Technical Summary
Existing embedded systems consume significant resources when displaying on high-resolution screens, causing display stuttering when the main control chip lacks an image accelerator.
When the main control chip sends the image data of each line in sequence, it first sends the starting coordinates, and then sends the color values of each coordinate point in that line in sequence, reducing the amount of data and reducing the cache usage of the main control chip.
It reduces the resource utilization of the main control chip and prevents stuttering when displaying images on the screen, especially in embedded devices with resolutions higher than 800*480.
Smart Images

Figure CN115662363B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of embedded device technology, and in particular to an image display method and system for embedded devices. Background Technology
[0002] Embedded systems integrate application software and hardware, featuring small code size, high automation, and fast response speed, making them particularly suitable for real-time and multi-tasking applications. An embedded system mainly consists of an embedded processor, related supporting hardware, an embedded operating system, and application software.
[0003] In existing embedded systems, the screen driver display method is a dot matrix method, which divides the screen into several pixels according to the resolution. Different images are displayed on the screen by dot matrix. In this method, before the main control chip adds a dot, it needs to send the coordinates of the dot, i.e., x, y data, and then send the color value of the dot to complete the display of one pixel. The color value will be displayed on the subsequent coordinates in sequence. After reaching the set width (x-axis), the y-coordinate is updated once, and then the color data is written again, and so on.
[0004] Existing screen driver display methods consume a lot of resources. Therefore, when using screens with high resolution, an image accelerator is required. If the main control chip does not have an image accelerator, the screen display will be very laggy and unresponsive. Summary of the Invention
[0005] The main objective of this invention is to provide an image display method and system for embedded devices, which aims to improve the image display speed.
[0006] In this embodiment of the invention, an image display method for an embedded device is proposed, comprising:
[0007] The main control chip reads the coordinate information of the image to be displayed on the screen and the color value of each coordinate point;
[0008] The image data of each row is sent to the display driver chip in sequence. When sending the image data of any row, the starting coordinates of the row are sent first, and then the color values of each coordinate point of the row are sent in sequence.
[0009] In this embodiment of the invention, after each color value is sent, the main control chip keeps the y-axis coordinate unchanged and automatically increments the x-axis coordinate by 1, updating the image color value to the next coordinate point until the width of the image is reached.
[0010] In this embodiment of the invention, after updating the coordinates and color values of a row, the main control chip increments the y-axis coordinate by 1 and updates the image data for the next row until the y-coordinate is updated to the image height.
[0011] In this embodiment of the invention, the image display method for the embedded device further includes:
[0012] The display driver chip receives the image data of each line sequentially, restores it, and controls the display screen to display it.
[0013] In this embodiment of the invention, the display driver chip restores the image data of each row, including:
[0014] The first color value is assigned to the color value of the starting coordinate point of the row.
[0015] Use the next color value as the color value for the next coordinate point.
[0016] In this embodiment of the invention, an image display system for an embedded device is also provided, comprising a main control chip, a display driver chip, and a display screen. The main control chip is used to read the coordinate information of the image to be displayed on the display screen and the color value of each coordinate point, and send them to the display driver chip. The display driver chip is used to drive the display screen to display the image.
[0017] The main control chip sequentially sends the image data of each row to the display driver chip. When sending the image data of any row, it first sends the starting coordinates of the row, and then sends the color value of each coordinate point of the row in sequence.
[0018] Compared with existing technologies, the image display method and system for embedded devices of the present invention, when the main control chip sends the image data to be displayed to the display driver chip, sends the image data of each row to the display driver chip sequentially. When sending any row of image data, the starting coordinates of the row are sent first, and then the color values of each coordinate point in the row are sent sequentially. It is not necessary to send all the coordinate information of the image to be displayed and its corresponding color information to the display driver chip one by one, which reduces the amount of data sent. This reduces the cache occupation of the main control chip and the resource utilization of the main control chip. For main control chips without image accelerator function, it can prevent stuttering when displaying images on the screen. Attached Figure Description
[0019] Figure 1 This is a schematic diagram of the image display system of the embedded device of the present invention.
[0020] Figure 2 This is a flowchart of the image display method for the embedded device of the present invention. Detailed Implementation
[0021] To make the objectives, technical solutions, and advantages of this invention clearer, the invention will be described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the following specific embodiments are only used to explain the invention and do not constitute a limitation thereof.
[0022] like Figure 1 As shown in the figure, an image display system for an embedded device is provided in this embodiment of the invention, which includes a main control chip, a display driver chip, and a display screen. These will be described in detail below.
[0023] The main control chip is used to read the coordinate information of the image to be displayed on the display screen and the color value of each coordinate point, and send it to the display driver chip. The main control chip can be a CPU or an MCU.
[0024] In this embodiment of the invention, the main control chip does not integrate an image accelerator. For embedded systems, the main control chip needs to support interface switching operations while ensuring the normal operation of other functions. Therefore, the screen display function cannot consume too many CPU resources, and the screen display cannot experience any lag. To this end, when sending the image data to be displayed to the display driver chip, the main control chip needs to reduce the cache usage of the image data.
[0025] In existing technologies, when sending image data, the main control chip typically sends each coordinate point of the image and its corresponding color value sequentially to the display driver chip. Sending image data for one coordinate point requires sending three values: the x-axis coordinate, the y-axis coordinate, and the color value, consuming significant cache resources. However, in this embodiment of the invention, the main control chip sends each row of image data sequentially to the display driver chip. When sending any row of image data, it first sends the starting coordinates of that row, and then sequentially sends the color value of each coordinate point in that row.
[0026] Specifically, such as Figure 2 As shown, the process by which the main control chip sends image data is as follows:
[0027] First, send the starting coordinates X, Y of the image to be drawn;
[0028] Determine if the y-axis value has reached the image height value. If it has, the current image drawing is complete, and the drawing session ends.
[0029] If the x-axis has not been reached, check if the x-axis has reached the image width value. If it has, it means that the current row of data has been drawn. At this time, update the y-axis coordinate by 1 and continue to draw the next row.
[0030] If it does not arrive, then send the color values for that row in sequence;
[0031] After each color value is sent, the y-axis coordinate remains unchanged, while the x-axis coordinate is automatically incremented by 1. The image color value is then updated to the next coordinate point until the width of the image is reached, thus completing the drawing of one line.
[0032] After updating the coordinates and color values of a row, the main control chip increments the y-axis coordinate by 1 and updates the image data for the next row until the y-coordinate is updated to the image height, thus completing the drawing of an image.
[0033] In this way, when the main control chip sends image data for each line, it only needs to send the starting coordinate point data of that line and all the color values of that line, thereby reducing the amount of data processing of the main control chip and preventing the main control chip from running slowly due to excessive load and causing screen display lag.
[0034] The display driver chip is used to control the display screen to display images based on the image data sent by the main control chip. Specifically, the display driver chip receives image data for each line in sequence, restores it, and controls the display screen to display the images.
[0035] In this embodiment of the invention, the display driver chip restores the image data of each row, including:
[0036] The first color value is assigned to the color value of the starting coordinate point of the row.
[0037] Use the next color value as the color value for the next coordinate point.
[0038] It should be noted that, to facilitate the display driver chip's recognition of each data point, the main control chip can set an identifier between the starting coordinate point data and the color data of each row when sending data. This allows the display driver chip to recognize and reconstruct the image data for that row. Through this method, the display driver chip can reconstruct the image data to be displayed.
[0039] In summary, the image display method and system for embedded devices using the present invention, when the main control chip sends the image data to be displayed to the display driver chip, sequentially sends the image data of each row to the display driver chip. When sending any row of image data, the starting coordinates of that row are sent first, and then the color values of each coordinate point in that row are sent sequentially. This eliminates the need to send all the coordinate information of the image to be displayed and its corresponding color information to the display driver chip one by one, reducing the amount of data sent. This reduces the cache usage of the main control chip and the resource utilization of the main control chip. For main control chips without image accelerator functions, especially when displaying images with a resolution higher than 800*480, this can prevent stuttering when displaying images on the screen.
[0040] The above description is merely a preferred embodiment of the present invention and does not limit the patent scope of the present invention. Any equivalent structural transformations made using the contents of the present invention's specification and drawings under the inventive concept of the present invention, or direct / indirect applications in other related technical fields, are included within the patent protection scope of the present invention.
Claims
1. An image display method for an embedded device, characterized in that, include: The main control chip reads the coordinate information of the image to be displayed on the screen and the color value of each coordinate point; The image data of each row is sent to the display driver chip in sequence. When sending the image data of any row, the starting coordinates of the row are sent first, and then the color values of each coordinate point of the row are sent in sequence.
2. The image display method for an embedded device as described in claim 1, characterized in that, After sending a color value each time, the main control chip keeps the y-axis coordinate unchanged and automatically increments the x-axis coordinate by 1, updating the image color value to the next coordinate point until the width of the image is reached.
3. The image display method for an embedded device as described in claim 2, characterized in that, After updating the coordinates and color values of a row, the main control chip increments the y-axis coordinate by 1 and updates the image data for the next row until the y-coordinate is updated to the image height.
4. The image display method for an embedded device as described in claim 1, characterized in that, Also includes: The display driver chip receives the image data of each line sequentially, restores it, and controls the display screen to display it.
5. The image display method for an embedded device as described in claim 4, characterized in that, The display driver chip restores the image data for each line, including: The first color value is assigned to the color value of the starting coordinate point of the row. Use the next color value as the color value for the next coordinate point.
6. An image display system for an embedded device, characterized in that, The system includes a main control chip, a display driver chip, and a display screen. The main control chip reads the coordinate information of the image to be displayed on the display screen and the color value of each coordinate point, and sends this information to the display driver chip. The display driver chip drives the display screen to display the image. The main control chip sequentially sends the image data of each row to the display driver chip. When sending the image data of any row, it first sends the starting coordinates of the row, and then sends the color value of each coordinate point of the row in sequence.
7. The image display system for an embedded device as described in claim 6, characterized in that, After sending a color value each time, the main control chip keeps the y-axis coordinate unchanged and automatically increments the x-axis coordinate by 1, updating the image color value to the next coordinate point until the width of the image is reached.
8. The image display system of the embedded device as described in claim 7, characterized in that, After updating the coordinates and color values of a row, the main control chip increments the y-axis coordinate by 1 and updates the image data for the next row until the y-coordinate is updated to the image height.
9. The image display system of the embedded device as described in claim 6, characterized in that, The display driver chip is used to receive image data of each line in sequence, restore it, and control the display screen to display it.
10. The image display system of the embedded device as described in claim 9, characterized in that, The display driver chip restores the image data for each row, including: The first color value is assigned to the color value of the starting coordinate point of the row. Use the next color value as the color value for the next coordinate point.
Citation Information
Patent Citations
Video OSD display method, computer device and computer readable storage medium
CN114785975A