Image Display Method and Apparatus, Storage Medium, and Video Processing Device
By configuring a virtual display device on an embedded processor and using programmable logic devices to process application images in the storage space, the problem of low display performance on an embedded processor is solved, and efficient image display is achieved.
Patent Information
- Application Number
- CN202111044151.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-09-07
- Publication Date
- 2025-08-05
- Estimated Expiration
- 2041-09-07
AI Technical Summary
When installing Linux operating systems on embedded processors, the prior art needs to rely on specific display hardware devices and low display performance.
By configuring a virtual display device, allocating storage space in memory, storing application images to storage space, and transmitting the physical address of the storage space to programmable logic devices for programmable logic devices to read from storage space according to physical addresses and output displays, getting rid of dependence on specific display hardware devices.
Improve display performance, avoid image tearing problems, improve display effect and system real-time.
Smart Images

Figure CN115775200B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of display technology, and in particular to an image display method, an image display device, a storage medium and a video processing device. Background Art
[0002] With the continuous advancement of technology, the demand for display of video processing devices is increasing. When the embedded processor (Advanced RISC Machines, ARM) has no display interface or the display interface does not meet the requirements of the usage scenario, how to output the application image of the application installed in the Linux operating system on ARM has become a relatively difficult problem to overcome.
[0003] Currently, there are two common solutions. The first utilizes the DRM (Direct Rendering Manager) framework, a mainstream image display framework in the Linux operating system. An application within the ARM chip generates an application image and transmits it to the DRM driver, which then drives a DRM device, such as a display hardware device, so that the DRM device can transmit the image to the display screen for display. Therefore, while this solution can output application images within an ARM chip equipped with the Linux operating system, it requires the use of specific DRM hardware. The second solution involves introducing a display buffer (Frame Buffer), writing the application image to this FB. After mapping this FB to the process space, read and write operations can be performed on the FB, and write operations are directly reflected in the image displayed on the screen. While this approach eliminates the need for specific display hardware, all display tasks are performed by the CPU (Central Processing Unit), which places a heavy burden on the CPU and results in poor display performance.
[0004] Therefore, providing an image display solution that does not rely on specific display hardware devices and can achieve high-performance display has become an urgent problem to be solved. Summary of the Invention
[0005] An image display method, an image display device, a storage medium, and a video processing device provided by embodiments of the present invention solve the problem that application image output in an ARM system installed with a Linux operating system depends on specific display hardware devices and has low display performance.
[0006] Specifically, an image display method provided by an embodiment of the present invention can be applied to an embedded processor installed with a Linux operating system, including: detecting whether a virtual display device is configured; in response to detecting that the virtual display device has been configured, allocating storage space in a memory connected to the embedded processor; obtaining an application image of a target application installed on the Linux operating system; storing the application image in the storage space; obtaining a physical address of the storage space; and sending the physical address to a programmable logic device connected to the embedded processor so that the programmable logic device reads the application image from the storage space according to the physical address and outputs it for display.
[0007] The above technical solution configures a virtual display device, allocates storage space in the memory, stores the application image of the target application in the storage space, and transmits the physical address of the storage space to the programmable logic device, so that the programmable logic device can obtain the application image in the storage space according to the physical address and output it for display, thereby freeing the output of the application image from dependence on specific display hardware devices. At the same time, the display task of the application image is completed by the programmable logic device, thereby improving the display performance.
[0008] In one embodiment of the present invention, allocating storage space in a memory connected to the embedded processor is specifically: allocating the storage space in the memory based on a direct memory access mechanism, wherein the size of the storage space is not less than the size of the application image.
[0009] In one embodiment provided by the present invention, the storage space includes a first storage space unit and a second storage space unit, the application image includes a first application image and a second application image, and storing the application image in the storage space is specifically: using a ping-pong operation method to store the first application image and the second application image one-to-one in the first storage space unit and the second storage space unit.
[0010] In the above technical solution, the storage space is set as a first storage space unit and a second storage space unit, and the first application image and the second application image are stored one-to-one in the storage space units using a ping-pong operation method, which can effectively avoid the image tearing problem that may occur when the application image is displayed, thereby improving the display effect.
[0011] In one embodiment of the present invention, storing the application image in the storage space specifically includes: storing the application image in the storage space through an advanced extensible interface bus; sending the physical address to a programmable logic device connected to the embedded processor so that the programmable logic device can read the application image from the storage space according to the physical address specifically includes: sending the physical address to the programmable logic device through the advanced extensible interface so that the programmable logic device can read the application image from the storage space through the advanced extensible interface bus according to the physical address.
[0012] In addition, an embodiment of the present invention provides an image display device, including: a virtual display device detection module, used to detect whether a virtual display device is configured; a storage space allocation module, used to allocate storage space in a memory connected to the embedded processor in response to detecting that the virtual display device has been configured; an application image acquisition module, used to obtain an application image of a target application installed on the Linux operating system; an application image storage module, used to store the application image in the storage space; a storage space physical address acquisition module, used to obtain a physical address of the storage space; and an application image output and display module, used to send the physical address to a programmable logic device connected to the embedded processor so that the programmable logic device can read the application image from the storage space according to the physical address and output it for display.
[0013] The image display device in the above technical solution configures a virtual display device, allocates storage space in the memory, stores the application image of the target application in the storage space, and transmits the physical address of the storage space to the programmable logic device, so that the programmable logic device can obtain the application image in the storage space according to the physical address and output it for display, thereby freeing the output of the application image from dependence on specific display hardware devices. At the same time, the display task of the application image is completed by the programmable logic device, thereby improving the display performance.
[0014] Furthermore, an embodiment of the present invention provides a storage medium, which is a non-volatile memory and stores computer-executable instructions. The computer-executable instructions are used to implement the image display method as described in any one of the above embodiments when executed.
[0015] Furthermore, an embodiment of the present invention provides a video processing device, comprising: an embedded processor; a programmable logic device electrically connected to the embedded processor; a memory electrically connected to the embedded processor and the programmable logic device; and an image output interface electrically connected to the programmable logic device; wherein the embedded processor is used to detect whether a virtual display device is configured, allocate storage space in the memory in response to detecting that the virtual display device has been configured, obtain an application image of a target application installed on the Linux operating system, store the application image in the storage space, obtain a physical address of the storage space, and send the physical address to the programmable logic device; the programmable logic device is used to read the application image from the storage space according to the physical address, and output and display the application image through the image output interface.
[0016] In one embodiment of the present invention, the video processing device also includes an image input interface; wherein, the image input interface is electrically connected to the programmable logic device, and before outputting and displaying the application image through the image output interface, the programmable logic device is also used to receive a second image through the image input interface and superimpose the second image and the application image.
[0017] In one embodiment of the present invention, the embedded processor is used to store the application image in the storage space specifically by: the embedded processor stores the application image in the storage space through an advanced extensible interface bus; the embedded processor is used to send the physical address to the programmable logic device specifically by: the embedded processor sends the physical address to the programmable logic device through the advanced extensible interface; the programmable logic device is used to read the application image from the storage space according to the physical address specifically by: the programmable logic device reads the application image from the storage space through the advanced extensible interface bus according to the physical address.
[0018] In one embodiment of the present invention, the embedded processor is used to allocate storage space in a memory connected to the embedded processor, specifically: the embedded processor allocates the storage space in the memory based on a direct memory access mechanism, wherein the size of the storage space is not less than the size of the application image.
[0019] The above technical solution can have one or more of the following beneficial effects: The present invention configures a virtual display device, allocates storage space in a memory, stores the application image of the target application in the storage space, and transmits the physical address of the storage space to a programmable logic device, so that the programmable logic device can obtain the application image in the storage space according to the physical address and output it for display, thereby freeing the output of the application image from dependence on a specific display hardware device. At the same time, the display task of the application image is completed by the programmable logic device, thereby improving display performance. In addition, the storage space is set as a first storage space unit and a second storage space unit, and a ping-pong operation is used to store the first application image and the second application image in a one-to-one correspondence in the storage space unit, which can effectively avoid the image tearing problem that may occur when the application image is displayed, thereby improving the display effect. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0021] Figure 1 A schematic flow chart of an image display method provided in the first embodiment of the present invention.
[0022] Figure 2 A schematic structural diagram of a video processing device provided by the first embodiment of the present invention.
[0023] Figure 3 A video processing device application provided by the first embodiment of the present invention is as follows Figure 1 Detailed flowchart of the image display method.
[0024] Figure 4 for Figure 2 Schematic diagram of the logical distribution of storage space in the memory.
[0025] Figure 5 Schematic diagram of the structure for data communication between memory, embedded processor and programmable logic device through advanced extensible interface bus.
[0026] Figure 6 A schematic diagram of a module of an image display device provided by a second embodiment of the present invention.
[0027] Figure 7 A schematic structural diagram of a readable storage medium provided in the third embodiment of the present invention. DETAILED DESCRIPTION
[0028] The following, in conjunction with the accompanying drawings and specific implementations, clearly and completely describes the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making any creative efforts are within the scope of protection of the present invention.
[0029] It should be noted that all directional indications in the embodiments of the present invention (such as up, down, left, right, front, back, etc.) are only used to explain the relative position relationship, movement status, etc. between the various components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication will also change accordingly.
[0030] In the description of the present invention, it should also be noted that, unless otherwise expressly specified or limited, the terms "disposed," "installed," "connected," and "connected" should be understood in a broad sense. For example, they may refer to fixed connections, detachable connections, or integral connections; they may refer to mechanical connections or electrical connections; they may refer to direct connections or indirect connections through an intermediate medium; and they may refer to internal communication between two components. Those skilled in the art will understand the specific meanings of the above terms in the present invention based on the specific circumstances.
[0031] The following describes some embodiments of the present invention in detail with reference to the accompanying drawings. In the absence of conflict, the following embodiments and features in the embodiments may be combined with each other.
[0032] [First embodiment]
[0033] like Figure 1 As shown, an embodiment of the present invention provides an image display method. The image display method is applied to an embedded processor installed with a Linux operating system, for example, including:
[0034] S1: Check whether a virtual display device is configured;
[0035] S2: In response to detecting that the virtual display device has been configured, allocating storage space in a memory connected to the embedded processor;
[0036] S3: Acquire an application image of a target application installed on the Linux operating system;
[0037] S4: storing the application image in the storage space;
[0038] S5: Obtain the physical address of the storage space;
[0039] S6: Send the physical address to a programmable logic device connected to the embedded processor so that the programmable logic device reads the application image from the storage space according to the physical address and outputs it for display.
[0040] Among them, an embedded processor is a general term for a microprocessor, which is a low-power RISC microprocessor designed by Acorn Ltd. in the UK, and can be installed with a Linux operating system. The Linux operating system is, for example, a currently popular open source operating system. A variety of application programs can be installed on the Linux operating system to meet the various needs of users. The Virtual Kernel Mode-Setting (VKMS) is a display device in the Linux kernel that is virtualized by software or a program, such as a "virtual display device". It can simulate the functions of a real graphics card by configuring a virtual display device in the Linux kernel. Therefore, VKMS can also be called a virtual display device. The configuration of the virtual display device can be achieved, for example, by modifying the source code in the Linux kernel. In addition, the application image is, for example, various interface images of the application.
[0041] In this way, the image display method provided by the embodiment of the present invention configures a virtual display device, allocates storage space in the memory, stores the application image of the target application in the storage space, and transmits the physical address of the storage space to the programmable logic device, so that the programmable logic device can obtain the application image in the storage space according to the physical address and output it for display, thereby freeing the output of the application image from dependence on a specific display hardware device. At the same time, the display task of the application image is completed by the programmable logic device, thereby improving the display performance.
[0042] Furthermore, step S2 is specifically as follows:
[0043] The storage space is allocated in the memory based on a direct memory access mechanism, wherein a size of the storage space is not less than a size of the application image.
[0044] Among them, the Direct Memory Access (DMA) mechanism can be used, for example, to implement the allocation of storage space in the memory. The above storage space is used to store the application image of the target application. The size of this storage space is, for example, not less than the size of the application image. In addition, the storage space allocated based on the DMA mechanism is, for example, a storage space with continuous physical addresses. ARM can capture the physical address of the storage space at the application layer, for example, through the application.
[0045] Furthermore, in step S3, the Linux operating system in the ARM can run multiple applications, and the multiple applications will generate corresponding application images. When the application image of the target application of the multiple applications needs to be displayed on the display screen, the embedded processor can obtain the corresponding application image from the target application.
[0046] Embedded processors, memories, and programmable logic devices communicate with each other via the Advanced Extensible Interface (AXI) bus, an on-chip bus designed for high performance, high bandwidth, and low latency, designed to meet the demands of ultra-high performance and complex system-on-chip designs.
[0047] Therefore, step S4 specifically includes: storing the application image in the storage space via the Advanced eXtensible Interface bus.
[0048] In addition, the above-mentioned storage space includes, for example, a first storage space unit and a second storage space unit; the application image includes, for example, a first application image and a second application image. Therefore, storing the application image in the storage space in step S4 is also specifically: using a ping-pong operation method to store the first application image and the second application image in a one-to-one correspondence in the first storage space unit and the second storage space unit. Therefore, it can be understood that the storage space size is not less than the sum of the sizes of the first application image and the second application image, and the space size of the first storage space unit is not less than the size of the first application image, and the space size of the second storage space unit is not less than the size of the second application image. And by using a ping-pong operation method to store the first application image and the first application image in a one-to-one correspondence in the first storage space unit and the second storage space unit, it can effectively avoid the image tearing problem that may occur when the application image is displayed, thereby improving the display effect.
[0049] Furthermore, step S6 is specifically as follows:
[0050] The physical address is sent to the programmable logic device through the advanced extensible interface, so that the programmable logic device reads the application image from the storage space through the advanced extensible interface bus according to the physical address.
[0051] For ease of understanding, the following will be combined Figure 2-Figure 5 An image display method according to an embodiment of the present invention is described in detail.
[0052] The image display method provided in the embodiment of the present invention may be applicable to a video processing device 20, for example. Figure 2As shown, the video processing device 20 includes, for example, an image input interface 21 , an image output interface 22 , an embedded processor 23 , a programmable logic device 24 and a memory 25 .
[0053] Specifically, the programmable logic device 24 is, for example, electrically connected to the embedded processor 23. The memory 25 is, for example, electrically connected to the embedded processor 23 and the programmable logic device 24. The image output interface 22 and the image input interface 21 are, for example, electrically connected to the programmable logic device. The display screen 26 is, for example, used to display application images transmitted from the video processing device 20. The image output interface 22 is connected to the display screen 26, for example, via an optical fiber connection, Ethernet, or other connection method. The image input interface 21 and the image output interface 22 are, for example, VGA interfaces, HDMI interfaces, DVI interfaces, standard video input and output (RCA) interfaces, etc. The display screen is, for example, an LED display screen, an LCD display screen, or other display screens. The memory 25 is, for example, a volatile memory, such as DDR (Double Data Rate). Of course, the memory can also be other types of memory, and the present invention is not limited thereto.
[0054] The specific implementation process of the image display method provided by the embodiment of the present invention is as follows.
[0055] First, if Figure 3 As described above, the embedded processor 23 configures a virtual display device. For example, the embedded processor 23 responds to user operations or automatically configures the Linux kernel's virtual display device (VKMS), such as by setting parameters related to the virtual display device, so that the video processing device 20 has the same or similar functionality as actual graphics card hardware. After the VKMS, or virtual display device, is configured in the Linux operating system, applications installed on the Linux operating system can, for example, detect parameters related to the virtual display device, causing the applications to "believe" that the embedded processor 23 is connected to a specific graphics card device and can display images.
[0056] Then, after the application image to be displayed is detected by the target application installed in the Linux system and the virtual display device has been configured, the embedded processor 23 allocates storage space in the memory 25 connected to the embedded processor 23 through the DRM driver based on the DMA mechanism. The size of the storage space should be no less than the size of the application image to be displayed.
[0057] Next, the embedded processor 23 obtains the application image to be displayed from the target application through the DRM driver. The embedded processor 23 then stores the application image in a storage space and obtains the physical address of the storage space. The embedded processor 23 then sends the physical address of the storage space to the programmable logic device 24.
[0058] Finally, the programmable logic device 24 reads the application image of the target application from the storage space in the memory 25 according to the physical address, and outputs it to the display screen 26 for display.
[0059] Further, such as Figure 4 As shown, the storage space 251 includes, for example, a first storage space unit 2511 and a second storage space unit 2512. The two storage space units are used to alternately store two or more application images. The size of each of the two storage space units is no less than the size of the two or more application images. To prevent image tearing when displaying application images, the embedded processor 23 stores the two or more application images in a one-to-one correspondence in the two storage space units using a ping-pong operation. For example, taking two application images, the embedded processor 23 first stores the first application image in the first storage space unit 2511 and sends the obtained physical address of the first storage space unit 2511 to the programmable logic device 24. Then, the embedded processor 23 stores the second application image in the second storage space unit 2512 and sends the obtained physical address of the second storage space unit 2512 to the programmable logic device 24. When the embedded processor 23 stores the second application image, the programmable logic device 24 reads the first application image from the first storage space unit 2511 according to the physical address of the first storage space unit 2511. After the embedded processor 23 finishes storing the second application image, the programmable logic device 24 reads the second application image from the second storage space unit 2512 according to the physical address of the second storage space unit 2512. In this way, the tearing problem that may occur between two or more application images can be effectively avoided, improving the image display quality. In addition, when multiple application images need to be displayed, the embedded processor 23 stores the multiple application images alternately in the first storage space unit 2511 and the second storage space unit 2512 through a ping-pong operation, and the programmable logic device 24 also reads the multiple application images alternately from the first storage space unit 2511 and the second storage space unit 2512 through a ping-pong operation and the physical addresses of the first storage space unit 2511 and the second storage space unit 2512.
[0060] Furthermore, the embedded processor 23 obtains, through the DRM driver, a number of application images to be displayed from the target application, for example, a plurality of application images. These multiple application images are drawn by the corresponding target application. For example, the target application is WeChat, a browser, or other application. The target application, for example, calls multiple drawing interfaces of the embedded processor 23 to draw the application images of the target application.
[0061] Furthermore, if Figure 3 As shown, the DRM driver also includes two types of behaviors: Graphics Execution Manager (GEM) and Kernel Mode-Setting (KMS). GEM is mainly responsible for FB management (Frame buffer management), such as the application and release of video memory, memory sharing mechanism (Memory sharing objects), and memory synchronization mechanism (Memory synchronization), while KMS is mainly responsible for completing the graphics card configuration (Display mode setting). The memory space unit allocated by the DMA mechanism in the memory has its corresponding physical address. The embedded processor, for example, obtains the physical address of the memory space unit where the application image is stored in the memory through the capture physical address mechanism. Specifically, the capture physical address mechanism enables the application layer of the application to capture the physical address of the storage space unit. After the application layer of the application obtains the physical address, the embedded processor sends it to the programmable logic device.
[0062] Furthermore, if Figure 5 As shown, the embedded processor 23, the programmable logic device 24, and the memory 25 implement data communication, for example, via an AXI bus. The embedded processor stores the application image in the storage space of the memory 25 via the AXI bus. The embedded processor sends the acquired physical address to the programmable logic device 24 via the AXI bus. The programmable logic device 24, for example, accesses the storage space corresponding to the physical address in the memory via the AXI bus based on the acquired physical address to read the application image of the target application from the storage space. Of course, the embedded processor 23 and the programmable logic device 24 can also exchange data here through other communication methods, such as gigabit PHY communication, SPI (Serial Peripheral Interface) communication, etc.
[0063] Furthermore, before outputting the application image to the display screen for display, the programmable logic device 24 may also perform image processing on the application image, such as image overlay processing, image quality adjustment processing, scaling processing, etc., before outputting it to the display screen for display. Specifically, the programmable logic device 24 may receive a second image, for example, via the image input interface 21. The second image mentioned above may be, for example, a video frame image or an image transmitted by another device via the image input interface and required to be displayed on the display screen 26. The programmable logic device 24 may overlay the second image with the application image, and then transmit the image to the display screen 26 via the image output interface 22 for output and display.
[0064] In summary, the embodiments of the present invention provide an image display method and video processing device. By detecting and configuring a virtual display device, a storage space is allocated in a memory, an application image of a target application is stored in the storage space, and the physical address of the storage space is transmitted to a programmable logic device, so that the programmable logic device can obtain the application image in the storage space according to the physical address and output it for display. This eliminates the dependence of the output of the application image on a specific display hardware device. At the same time, the display task of the application image is completed by the programmable logic device, thereby improving display performance. Furthermore, the storage space is configured as a first storage space unit and a second storage space unit, and a ping-pong operation is used to store the first application image and the second application image in a one-to-one correspondence in the storage space units. This effectively avoids image tearing problems that may occur when the application image is displayed, thereby improving the display effect. Furthermore, the embedded processor 23, the programmable logic device 24, and the memory 25 implement data communication, for example, via an AXI bus, which improves the speed and efficiency of data transmission and enhances the real-time performance of the system.
[0065] [Second embodiment]
[0066] like Figure 6 As shown, the second embodiment of the present invention provides an image display device 30, which includes, for example: a virtual display device detection module 31, a storage space allocation module 32, an application image acquisition module 33, an application image storage module 34, a storage space physical address acquisition module 35 and an application image output display module 36.
[0067] Among them, the virtual display device detection module 31 is used to detect whether a virtual display device is configured. The storage space allocation module 32 is used to allocate storage space in the memory connected to the embedded processor in response to detecting that the virtual display device has been configured. The application image acquisition module 33 is used to obtain the application image of the target application installed on the Linux operating system. The application image storage module 34 is used to store the application image in the storage space. The storage space physical address acquisition module 35 is used to obtain the physical address of the storage space. The application image output display module 36 is used to send the physical address to the programmable logic device connected to the embedded processor so that the programmable logic device can read the application image from the storage space according to the physical address and output it for display.
[0068] Furthermore, the storage space allocation module 32 is specifically configured to:
[0069] The storage space is allocated in the memory based on a direct memory access mechanism, wherein a size of the storage space is not less than a size of the application image.
[0070] In addition, the storage space includes a first storage space unit and a second storage space unit, and the application image includes a first application image and a second application image. The application image storage module 34 is specifically used to:
[0071] The first application image and the second application image are stored in a one-to-one correspondence in the first storage space unit and the second storage space unit using a ping-pong operation.
[0072] Furthermore, the application image storage module 34 is further configured to:
[0073] storing the application image in the storage space via an advanced extensible interface bus;
[0074] In addition, the application image output display module 36 is specifically used to:
[0075] The physical address is sent to the programmable logic device through the advanced extensible interface, so that the programmable logic device reads the application image from the storage space through the advanced extensible interface bus according to the physical address.
[0076] The modules of the image display device 30 in this embodiment can be integrated into the embedded processor in the aforementioned embodiment, for example. The specific working process and technical effects of the modules can be found in the description of the first embodiment.
[0077] [Third embodiment]
[0078] like Figure 7 As shown, a third embodiment of the present invention provides a storage medium 50. The storage medium 50 is, for example, a computer-readable storage medium that stores computer-executable instructions 51. The storage medium 50 is, for example, a non-volatile memory, such as magnetic media (such as hard disks, floppy disks, and magnetic tapes), optical media (such as CDROMs and DVDs), magneto-optical media (such as optical disks), and hardware devices specifically configured to store and execute computer-executable instructions (such as read-only memory (ROM), random access memory (RAM), flash memory, etc.). The storage medium 50 can be used by one or more processors or processing devices to execute the computer-executable instructions 51 to implement the image display method provided in the first embodiment.
[0079] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the various embodiments of the present invention.
Claims
1. An image display method, applied to an embedded processor installed with a Linux operating system, characterized in that: The image display method comprises: Detect whether a virtual display device is configured; In response to detecting that the virtual display device has been configured, allocating storage space in a memory coupled to the embedded processor; Obtaining an application image of a target application installed on the Linux operating system; storing the application image in the storage space; Obtaining the physical address of the storage space; The physical address is sent to a programmable logic device connected to the embedded processor so that the programmable logic device reads the application image from the storage space according to the physical address and outputs it for display.
2. The image display method according to claim 1, wherein: The allocating storage space in the memory connected to the embedded processor is specifically as follows: The storage space is allocated in the memory based on a direct memory access mechanism, wherein a size of the storage space is not less than a size of the application image.
3. The image display method according to claim 1, wherein: The storage space includes a first storage space unit and a second storage space unit, the application image includes a first application image and a second application image, and storing the application image in the storage space specifically includes: The first application image and the second application image are stored in a one-to-one correspondence in the first storage space unit and the second storage space unit using a ping-pong operation.
4. The image display method according to claim 1, wherein: The storing of the application image in the storage space specifically includes: storing the application image in the storage space via an advanced extensible interface bus; The sending of the physical address to a programmable logic device connected to the embedded processor so that the programmable logic device reads the application image from the storage space according to the physical address is specifically as follows: The physical address is sent to the programmable logic device through the advanced extensible interface, so that the programmable logic device reads the application image from the storage space through the advanced extensible interface bus according to the physical address.
5. An image display device, characterized in that: The method for performing the image display method according to any one of claims 1 to 4 comprises: A virtual display device detection module is used to detect whether a virtual display device is configured; a storage space allocation module for allocating storage space in a memory connected to the embedded processor in response to detecting that the virtual display device has been configured; an application image acquisition module, configured to acquire an application image of a target application installed on the Linux operating system; an application image storage module, configured to store the application image in the storage space; A physical address acquisition module, configured to acquire the physical address of the storage space; and The application image display module is used to send the physical address to a programmable logic device connected to the embedded processor so that the programmable logic device reads the application image from the storage space according to the physical address and outputs it for display.
6. A storage medium, characterized in that The storage medium is a non-volatile memory and stores computer-executable instructions, wherein the computer-executable instructions are used to implement the image display method according to any one of claims 1 to 4 when executed.
7. A video processing device, characterized in that: include: Embedded processors; a programmable logic device, electrically connected to the embedded processor; a memory electrically connected to the embedded processor and the programmable logic device; An image output interface, electrically connected to the programmable logic device; The embedded processor is configured to detect whether a virtual display device is configured, allocate storage space in the memory in response to detecting that the virtual display device is configured, obtain an application image of a target application installed on a Linux operating system, store the application image in the storage space, obtain a physical address of the storage space, and send the physical address to the programmable logic device; The programmable logic device is used to read the application image from the storage space according to the physical address, and output and display the application image through the image output interface.
8. The video processing device according to claim 7, wherein: It also includes an image input interface; wherein, the image input interface is electrically connected to the programmable logic device, and before outputting and displaying the application image through the image output interface, the programmable logic device is also used to receive a second image through the image input interface and overlay the second image and the application image.
9. The video processing device according to claim 7, wherein: The embedded processor is configured to store the application image in the storage space specifically: The embedded processor stores the application image in the storage space via an advanced extensible interface bus; The embedded processor is configured to send the physical address to the programmable logic device specifically: The embedded processor sends the physical address to the programmable logic device through the advanced extensible interface; The programmable logic device is configured to read the application image from the storage space according to the physical address in the following manner: The programmable logic device reads the application image from the storage space through the AEIB according to the physical address.
10. The video processing device according to claim 7, wherein The embedded processor is used to allocate storage space in a memory connected to the embedded processor specifically as follows: The embedded processor allocates the storage space in the memory based on a direct memory access mechanism, wherein the size of the storage space is not less than the size of the application image.
Citation Information
Patent Citations
Methods for interfacing with a virtualized computing service over a network using a lightweight client
CN102713848A
Zynq-7000 based moving object detecting and tracking system
CN105847766A