Image display control system and image display control method
By designing an image display control system, using the target digital hardware circuit to process pixel data and output differential signals, the problems of high cost and high power consumption in the existing technology are solved, and low cost and low power consumption are realized high-definition image display, suitable for non-existence Operating system and Linux environment.
Patent Information
- Application Number
- CN202410873856.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-01
- Publication Date
- 2024-11-01
AI Technical Summary
The prior art is difficult to realize low-cost and low-power high-definition image display, especially when paired with a graphics processor, it is difficult to meet customizable needs.
An image display control system is designed, including a target digital hardware circuit and a storage module. It processes pixel data through functional circuit modules, generates image stream data, and converts it into a target differential signal to output it to the display connection port, supporting no operating system and Image display of Linux operating system.
It realizes high-definition image display with low cost and low power consumption, a simple and integrated design, does not require GPU hardware equipment, has good compatibility and cross-platform portability, and avoids timing problems caused by hardware algorithm processing.
Smart Images

Figure CN118887889A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of display control technology, and in particular to an image display control system and an image display control method. Background Art
[0002] In the related art, in order to achieve the demand for high-definition image display, image processing hardware, such as a graphics processing unit (GPU), is usually used to realize image display in an industrial computer manner, which is difficult to meet the customizable requirements and has a high cost. Summary of the invention
[0003] The present application provides an image display control system and an image display control method, which can realize image display and have lower cost and lower power consumption.
[0004] In a first aspect, an embodiment of the present application provides an image display control system comprising:
[0005] A first storage module, used for storing pixel data of an image;
[0006] The target digital hardware circuit comprises a storage connection port, a display connection port and a functional circuit module, wherein the storage connection port is connected to the storage module, and the display connection port is connected to the display device;
[0007] The functional circuit module comprises:
[0008] A first circuit unit, configured to provide pixel data in the first storage module to other circuit units;
[0009] A second circuit unit, used for providing a first pixel timing for image matching;
[0010] A third circuit unit, configured to process the pixel data into image stream data based on the first pixel timing;
[0011] A fourth circuit unit, configured to provide a second pixel timing based on a resolution corresponding to the display device;
[0012] The fifth circuit unit is used to convert the image stream data into a target differential signal based on the second pixel timing, and output the target differential signal to the display connection port.
[0013] In a possible implementation manner, the system further includes: a first display control module, wherein the first display control module is configured to:
[0014] Based on a board support package (BSP) corresponding to the target digital hardware circuit, obtaining register information and hardware parameter configuration information corresponding to the target digital hardware circuit;
[0015] Based on the register information and hardware parameter configuration information corresponding to the target digital hardware circuit, each circuit unit in the functional circuit module is driven to operate.
[0016] In a possible implementation manner, the system further includes: a second storage module and an image data processing module;
[0017] The second storage module is used to store a video, wherein the video includes at least one image, and the image is an image in a BMP format;
[0018] The image data processing module is used for:
[0019] Based on the format information of the BMP image, pixel data of the image is generated, and the pixel data of the image is written into the first storage module.
[0020] In a possible implementation manner, the system further includes: a second display control module, wherein the second display control module is configured to:
[0021] Obtaining a device tree file of the target digital hardware circuit;
[0022] Based on the device tree file, determining control information of some circuit units in the functional circuit module;
[0023] Based on the DRM architecture and the control information of the partial circuit unit, the target digital hardware circuit is controlled to output the target differential signal to the display connection port.
[0024] In a second aspect, an embodiment of the present application further provides an image display control method, which is applied to the image display control system as described in the first aspect, and the method includes:
[0025] Obtaining a board support package corresponding to a target digital hardware circuit in the image display control system;
[0026] Based on a board support package (BSP) corresponding to the target digital hardware circuit, obtaining register information and hardware parameter configuration information corresponding to the target digital hardware circuit;
[0027] Based on the register information and hardware parameter configuration information corresponding to the target digital hardware circuit, each circuit unit in the functional circuit module is driven to operate.
[0028] In a possible implementation manner, the method further includes:
[0029] Acquire an image in a video from a second storage module, wherein the video includes at least one image, and the image is an image in a BMP format;
[0030] Based on the format information of the BMP image, pixel data of the image is generated, and the pixel data of the image is written into the first storage module in the image display control system.
[0031] In a third aspect, an embodiment of the present application further provides an image display control method, which is applied to the image display control system described in the first aspect, and the method includes:
[0032] Obtaining a device tree file of the target digital hardware circuit;
[0033] Based on the device tree file, determining control information of some circuit units in the functional circuit module;
[0034] Based on the DRM architecture and the control information of the partial circuit unit, the target digital hardware circuit is controlled to output the target differential signal to the display connection port.
[0035] In a fourth aspect, an embodiment of the present application further provides an image display control method, which is applied to the image display control system as described in the first aspect, and the method includes:
[0036] Get display control mode parameters;
[0037] The image display control system is controlled by adopting a driving mode corresponding to the display control mode parameter from a plurality of driving modes.
[0038] In a possible implementation manner, the step of controlling the image display control system by adopting a driving mode corresponding to the display control mode parameter from among a plurality of driving modes includes:
[0039] If the display control mode parameter indicates that there is no operating system, perform the following operations:
[0040] Based on a board support package (BSP) corresponding to the target digital hardware circuit, obtaining register information and hardware parameter configuration information corresponding to the target digital hardware circuit;
[0041] Based on the register information and hardware parameter configuration information corresponding to the target digital hardware circuit, each circuit unit in the functional circuit module is driven to operate.
[0042] In a possible implementation manner, the image display control system is controlled by adopting a driving mode corresponding to the display control mode parameter from a plurality of driving modes, further comprising:
[0043] If the display control mode parameter indicates a target operating system, the following operations are performed:
[0044] Obtaining a device tree file of the target digital hardware circuit;
[0045] Based on the device tree file, determining control information of some circuit units in the functional circuit module;
[0046] Based on the DRM architecture and the control information of the partial circuit unit, the target digital hardware circuit is controlled to output the target differential signal to the display connection port.
[0047] In a possible implementation, when the instructions in the computer storage medium are executed by a processor, the processor executes the method as described in the second aspect, the third aspect, or the fourth aspect.
[0048] These and other aspects of the present application will be more clearly understood in the description of the following embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the description of the embodiments will be briefly introduced below. 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 paying creative labor.
[0050] Figure 1 It is a structural schematic diagram of an image display control system;
[0051] Figure 2A It is a structural schematic diagram of a functional circuit module;
[0052] Figure 2B and Figure 2C is a schematic diagram of the specific structure of the functional circuit module;
[0053] Figure 3A It is a structural schematic diagram of an image display control system;
[0054] Figure 3B A schematic diagram of a working process of the first display control module;
[0055] Figure 4 A schematic diagram of a working process of an image processing module in an image display control system;
[0056] Figure 5A It is a structural schematic diagram of an image display control system;
[0057] Figure 5B A schematic diagram of an operating system architecture;
[0058] Figure 5C is a schematic diagram of a DRM architecture;
[0059] Figure 5DIt is a schematic diagram of a driver calling relationship;
[0060] Figure 5E is a schematic diagram of a working process of the second display control module;
[0061] Figure 6 is a schematic flow chart of an image display control method;
[0062] Figure 7 is a schematic flow chart of an image display control method;
[0063] Figure 8 The figure is a schematic flow chart of an image display control method. DETAILED DESCRIPTION
[0064] At least one of the embodiments of the present application includes one or more; wherein, multiple means greater than or equal to two. In addition, it should be understood that in the description of the present application, the words "first", "second", etc. are only used for the purpose of distinguishing the description, and cannot be understood as an explicit or implicit relative importance, nor can they be understood as an explicit or implicit order. In the description of the present application, "A and / or B" includes three schemes, namely including A; including B; and including A and B.
[0065] The image display control system provided by the embodiment of the present application is introduced below in conjunction with the accompanying drawings. Figure 1 As shown, the image display control system may include a first storage module and a target digital hardware circuit. Optionally, the first storage module may be integrated with the target digital hardware circuit, or the first storage module and the target digital hardware circuit are independent.
[0066] The first storage module is used to store pixel data of an image. A video generally includes at least one image. The first storage module can store pixel data of each image in the video. The pixel data of each image in the video is also generally referred to as a video data stream. The pixel data of an image can be referred to as image data.
[0067] The target digital hardware circuit may include a memory connection port, a display connection port (HDMI interface) and a functional circuit module, wherein the memory connection port is connected to the first storage module, and the display connection port is connected to the display device. The target digital hardware circuit may support the output display of the image from the pixel data of the image in the first storage module to the image of the HDMI interface, and this function may be implemented by the functional circuit module in the target digital hardware circuit. Optionally, the target digital hardware circuit may be implemented as a field programmable gate array (FPGA).
[0068] The functional circuit module may include a plurality of circuit units, which are respectively a first circuit unit, a second circuit unit, a third circuit unit, a fourth circuit unit and a fifth circuit unit.
[0069] The first circuit unit may be used to transmit the pixel data in the first storage module to other circuit units;
[0070] The second circuit unit may be used to provide a first pixel timing for image matching and a synchronization signal for video output;
[0071] The third circuit unit may be used to process the pixel data into image stream data based on the first pixel timing. The third circuit unit may frame the pixel data into image stream data based on the first pixel timing.
[0072] The fourth circuit unit may be configured to provide a second pixel timing based on a resolution corresponding to the display device;
[0073] The fifth circuit unit may be configured to convert the image stream data into a target differential signal based on the second pixel timing, and output the target differential signal to the display connection port.
[0074] By configuring each circuit unit in the functional circuit module, the pixel data of the image in the first storage module can be output and displayed to the image of the HDMI interface. In a possible implementation, the functional circuit module in the target digital hardware circuit includes a part of the circuit units in the video direct memory access (VDMA).
[0075] In some application scenarios, the functions of the aforementioned target digital hardware circuit can be applied to the ZYNQ7100 CubeSat communication board. The bit file of the target digital hardware circuit is generated using the FPGA part of kinetex-7. The HDMI interface on the ZYNQ7100 CubeSat communication board is connected to the programmable logic unit (PL), and the operating system (PS) part with the ARM module does not integrate the display control hardware. Therefore, the specific display hardware circuit is implemented by the PL side. The aforementioned target digital hardware circuit can be used to simulate a set of image processing hardware links from the first storage module to the display device.
[0076] Figure 2A The figure is a schematic diagram of the structure of a functional circuit module. The functional circuit module may include an image data generation and buffering submodule, an image data buffering and transporting submodule, and a direct memory access (DMA) display control submodule.
[0077] The image data generation and caching submodule may include a Processor System unit and an AXIInterconnect unit.
[0078] Figure 2B and Figure 2C This is a specific structural diagram of a functional circuit module. Figure 2A , Figure 2B and Figure 2C , the Processor System unit may include a port mapping circuit unit.
[0079] The port mapping circuit unit can be implemented as a processing_system7_0 component. The processing_system7_0 component can implement the interface implementation of various interfaces of the main CPU in the processor (such as ARM) to the FPGA side, for example, it can implement clock, memory, general purpose input output port (General Purpose Input Output, GPIO), high-performance purpose (high-performance purpose, HP) interface, general purpose (general purpose, GP) interface, etc. The ARM side memory interface can be but not limited to a double data rate (Double Data Rate, DDR) synchronous dynamic random access memory interface. The memory interface on the ARM side can interact with various hardware on the FPGA side through the HP or GP interface.
[0080] The AXI Interconnect unit can include an axi_mem_intercon component. This component can be used for one-to-many, many-to-one or many-to-many AXI4 protocol transmission, and can also be used for master-slave data response. In some application scenarios, the axi_mem_intercon component can realize the memory data on the ARM side through the HP high-speed interface, and the data exchange with the circuit unit of the FPGA through the AXI protocol. For example, the axi_mem_intercon component can be configured as the AXI4, AXI4-Stream protocol mode.
[0081] The image data caching and handling submodule may include an AXI Video Direct Memory Access unit. Among them, the AXI Video Direct Memory Access unit may include a first circuit unit, and the first circuit unit may be implemented as an hdmi_vdma component. The hdmi_vdma component can handle the handling of video data, and may also have functions such as whole frame caching, synchronous frame reading, and dynamic frame extraction. The hdmi_vdma component can support simultaneous reception (such as configured as a read channel from the ARM side to the FPGA side) and transmission (such as configured as a write channel from the FPGA side to the ARM side). For example, the hdmi_vdma component can synchronize and cache frame data according to the size of the number of bytes of the received pixel data. The total number of bytes in a frame is pre-configured. The hdmi_vdma component can also handle image data through DMA without occupying CPU instruction cycles.
[0082] The hdmi_vdma component can provide the pixel data in the first storage module to other circuit units based on the image data generation and cache submodule.
[0083] The DRM display control submodule may include a Video Timing Controller unit, an AXI4-Stream to Video Out unit, an RGB to DVI Video Encoder unit, and a Dynamic Clock Generator unit.
[0084] The Video Timing Controller unit may include a second circuit unit. The second circuit unit may be implemented as a video_time_ctrl component. The second circuit unit may have a synchronous clock signal, may support the detection and generation of synchronization signals, and may monitor functions such as line synchronization and frame synchronization pulses, polarity, blank timing, and valid video pixels. It can be seen that the second circuit unit may provide various synchronization signals for processing pixel data as image data. In some scenarios, when the second circuit unit is used in conjunction with the Video out to AXI4-Stream core, it may perform the function of providing line synchronization and frame synchronization signals for video output. The Video out to AXI4-Stream core is generally used to convert AXI data into RGB format data. In some scenarios, when the second circuit unit is used in conjunction with the Video in to AXI4-Stream core, it may perform the function of monitoring the format and data of the input video stream. The Video in to AXI4-Stream core is generally used to convert RGB format data into AXI data.
[0085] In the example of the present application, the second circuit unit can be used to provide a first pixel timing that matches the image in the first storage module, and the second circuit unit can also provide a synchronization signal for video output. So that other circuit units, such as the third circuit unit, can frame the video data according to the standard image display format according to the first pixel timing. Generally speaking, the synchronization signal of the video output may include one or more of the following: output field synchronization signal, line synchronization signal, valid frame time signal, valid line time signal, valid field time signal, line front shoulder signal, line rear shoulder signal, field front shoulder signal, field rear shoulder signal, etc.
[0086] The AXI4-Stream to Video Out unit may include a third circuit unit. The third circuit unit may be implemented as a video_out_ctrl component. The third circuit unit may cooperate with the second circuit unit to generate a signal that complies with video transmission. For example, the third circuit unit may match a line synchronization signal to obtain corresponding line valid pixel data; for another example, the third circuit unit may match a frame synchronization signal to obtain corresponding frame valid pixel data.
[0087] In this example of the present application, the third circuit unit can process the pixel data of the image into image stream data according to the first pixel timing provided by the second circuit unit. In other words, the third circuit unit can frame the pixel data into image stream data.
[0088] The Dynamic Clock Generator unit may include a fourth circuit unit. The fourth circuit unit may be implemented as a dynamic_timing component. The fourth circuit unit may match the HDMI terminal connected to the target digital hardware circuit, and may output clock frequency signals corresponding to different resolutions. For example, the fourth circuit unit may match the requirements of different HDMI resolutions through an integrated phase-locked loop, etc., and provide a clock frequency output that meets the resolution, and may match the special clock requirements of the display port with high precision.
[0089] In this example of the present application, the fourth circuit unit may provide a second pixel timing based on a resolution corresponding to the display device.
[0090] The RGB to DVI Video Encoder unit may include a fifth circuit unit. The fifth circuit unit may include an rgb_to_hdmi component. The fifth circuit unit may provide TMDS protocol data for the HDMI display port. For example, the fifth circuit unit may provide a minimized differential signal transmission signal (Transition Minimized Differential Signaling, TMDS) for the display port of a DVI / HDMI display terminal. The RGB to TMDS mode is realized by using a soft core method, and the soft core is encoded into a TMDS differential signal, so the HDMI interface of the image display control system is not required, and an external TMDS encoding chip may not be required, saving hardware development costs. In addition, the general I / O interface of the FPGA is more flexible in adapting to the HDMI bus.
[0091] In this example of the present application, the fifth circuit unit may convert the image stream data into a target differential signal based on the second pixel timing, and output the target differential signal to the display connection port.
[0092] In some embodiments, in the target digital hardware circuit in the image display control system, the DDR port of the processing_system7_0 component can collect pixel data from the first storage module and provide it to the first circuit unit (hdmi_vdma component) through the HP0 port of the processing_system7_0 component and the axi_mem_intercon component.
[0093] The first circuit unit (hdmi_vdma component) can provide pixel data to the third circuit unit (video_out_ctrl). The second circuit unit (video_time_ctrl) can provide a first pixel timing for image matching. The third circuit unit (video_out_ctrl) processes the pixel data into image stream data based on the first pixel timing, and sends the image stream data to the fifth circuit unit (rgb_to_hdmi).
[0094] The fourth circuit unit (dynamic_timing) can provide a second pixel timing to the fifth circuit unit (rgb_to_hdmi) based on the resolution corresponding to the display device. The fifth circuit unit (rgb_to_hdmi) is used to convert the image stream data into a target differential signal based on the second pixel timing, and output it to the display connection port to complete the display image function.
[0095] In a possible implementation, the functional circuit module may further include other components to coordinate the signal interaction between the aforementioned components. For example, the AXI Interconnect unit may include a ps7_0_axi_periph component. The ps7_0_axi_periph component can be used to implement one-to-many, many-to-one, or many-to-many channels, build a transmission channel between the host and the slave, and support AXI4, AXI4-Stream, AXI4-Lite protocols, etc. The ps7_0_axi_periph component can implement the ARM side to send low-speed control instructions to each component through the GP interface and the AXI4-LITE protocol.
[0096] The functional circuit module may further include a reset submodule, which may include a rst_ps7_0_100M component and a rst_ps7_0_142M component.
[0097] The rst_ps7_0_100M component can match the control clock and reset signal of the main intellectual property soft core (IntelligentProperty, IP) of the operating system, and reset the connected soft cores at all levels. The rst_ps7_0_100M component can match the 100M clock provided by the main core of the operating system to achieve clock synchronization and reset control of the connected circuit units. For example, the AXI4-Lite bus clock synchronization control connected to the hdmi_vdma component, and the AXI4-Lite clock synchronization control and reset connected to the Video TimingController unit, etc.
[0098] The rst_ps7_0_142M component can match the clock synchronization and reset control from the operating system master IP core to the connected slave IP cores. The rst_ps7_0_142M component can synchronize and reset the clock from the 142M video clock generated by the ARM side to the slave soft cores, such as the hdmi_vdma component and the video_out_ctrl component.
[0099] The functional circuit module may also include an interrupt submodule. The interrupt submodule may include an irq_vdma component. The irq_vdma component may integrate the interrupt and synchronization signals of the main soft core into a multi-bit data in a bit sequence and transmit it back to the CPU main core through a bus channel. The irq_vdma component may convert multiple one-bit signals into a single-channel signal with a bit expansion through the Concat soft core.
[0100] Based on the introduction of the above image display control system, it can be seen that the image display control system is simple in implementation and highly integrated, which is convenient for single-machine integrated design and does not require the support of various GPU hardware devices and other interface device hardware. Among them, the target digital hardware circuit has good compatibility and applicability, so it is also relatively convenient to transplant the circuit across platforms. The logic of the hardware circuit is not complicated, and the front and back processes are simple, so the timeliness is very good, and there will be no long timing problems caused by the processing of the hardware algorithm.
[0101] In actual application scenarios, based on the above target digital hardware circuit, a BIT stream application file for converting to FPGA and a hardware description file (XSA file) can be obtained. Based on the hardware description file, a board support package (BSP) corresponding to the above target digital hardware circuit can be obtained. The board support package is also a development package made of the register information used by the hardware device and the standard function library API.
[0102] In a possible implementation, the image display control system can be applied to a scenario where an electronic device or a display device without an operating system performs image display. Based on any one of the image display control systems provided in the foregoing embodiments, such as Figure 3A As shown, the image display control system further includes: a first display control module, wherein the first display control module is used to:
[0103] Based on a board support package (BSP) corresponding to the target digital hardware circuit, obtaining register information and hardware parameter configuration information corresponding to the target digital hardware circuit;
[0104] And based on the register information and hardware parameter configuration information corresponding to the target digital hardware circuit, each circuit unit in the functional circuit module is driven to work.
[0105] The first display control module can support image display without operating system driver. The register information corresponding to the target digital hardware circuit can include the register base address corresponding to each circuit unit. The hardware parameter configuration information corresponding to the target digital hardware circuit can include a header file (xparameters.h) of the hardware parameter configuration.
[0106] The first display control module can obtain the interface function of each circuit unit in the circuit unit template that can be called through the board support package BSP, as well as the register base address and hardware parameter configuration header file (xparameters.h) corresponding to each circuit unit on the target digital hardware circuit. The first display control module can control the working state of each circuit unit by adjusting the register parameters based on the register information corresponding to each circuit unit.
[0107] The first display control module can obtain information related to the register parameters through the interface function of the circuit unit.
[0108] For example, the first display control module can obtain each configuration item in the configuration list corresponding to the first circuit unit through the interface function of the first circuit unit, such as a lookup table function, so as to initialize the circuit unit.
[0109] For another example, the first display control module can calculate the frequency parameters of the resolution corresponding to the display device and the matching optimal clock frequency division parameters through the interface function of the fourth circuit unit. The first display control module can adjust the value of the register of the fourth circuit unit based on the matching optimal clock frequency division parameters to implement the configuration.
[0110] For another example, the first display control module can obtain the configuration information corresponding to the second circuit unit through the interface function of the second circuit unit, such as the lookup table function, so as to initialize the circuit unit. The first display control module can configure whether to generate a video display clock source, or detect an existing clock source and match the synchronization through the clock source information in the configuration information corresponding to the second circuit unit. And configure synchronization parameters, such as field synchronization, line synchronization, front and back porch parameters, etc.
[0111] In one possible application scenario, Figure 3B The working process of the first display control module is exemplarily shown, which may include the following steps:
[0112] S301, initializing a first storage module.
[0113] S302, initialize the hdmi_vdma component, and configure the register address and parameters of the hdmi_vdma component.
[0114] S303, calculating the register value of the dynamic_timing component and configuring dynamic_timing to start.
[0115] The first display control module can calculate the optimal dynamic clock frequency according to the resolution of the connected display device. The first display control module can calculate the register parameter of the dynamic_timing component according to the optimal dynamic clock frequency, configure the register parameter to the dynamic_timing component, start the dynamic_timing component, and the dynamic_timing component can output a second pixel timing that matches the resolution of the display device.
[0116] Optionally, the first display control module can use an iterative algorithm to continuously calculate different main frequency division and clock frequency division coefficients according to the display clock frequency of the resolution to be displayed, and calculate the frequency division parameter value that is closest to the given clock frequency (that is, the display clock frequency of the resolution to be displayed), so as to calculate the optimal dynamic clock frequency. The first display control module can prepare data according to the shifting mode of the register according to the calculated frequency division parameter value to obtain the register value of the dynamic_timing component.
[0117] S304, initialize the video_time_ctrl component, configure the video_time_ctrl component, and enable the video_time_ctrl component to start working.
[0118] Optionally, there may be multiple video_time_ctrl components in the target digital hardware circuit. Each video_time_ctrl component has a different device number and register base address, and each video_time_ctrl component may be configured with an error control callback function. In step S304, the video_time_ctrl component used this time may be initialized, configured, and enabled, for example, by selecting the component according to the device number of the video_time_ctrl component.
[0119] S305, configure the read channel parameters of the hdmi_vdma component, configure the channel cache start address of the hdmi_vdma component, and configure the read channel of the hdmi_vdma component to start working.
[0120] S306, configuring the first storage module to refresh pixel data, reading bitmap pixel data of the image data, and refreshing the first storage module.
[0121] After the first display control module configures each component and starts working, the first display control module can control the image data in the first storage module to be refreshed, so that the target digital hardware circuit displays the incoming image data according to the resolution configured by the driver.
[0122] In one possible application scenario, the image display control system provided by the embodiment of the present application can be applied in an environment without a file system and an operating system. It is difficult to process pixel data through a standard file input and output stream interface. Figure 3A , the image display control system may include a second storage module and an image data processing module.
[0123] The second storage module can store a video, where the video includes at least one image, and the image is an image in a BMP format.
[0124] The image data processing module can generate pixel data of the image based on the format information of the BMP image, and write the pixel data of the image into the first storage module. It can be seen that the image data processing module can transcode the image format storing pixel data information into pixel data that can be recognized by the code, so as to facilitate the driver to extract and process.
[0125] The working process of the image data processing module can be described as follows: Figure 4 As shown, the image data processing module can perform the following operations:
[0126] S401, obtaining a file stream of a BMP image data file, wherein the file stream includes at least one image and attribute information of the file stream, and writing the stream into a second storage module.
[0127] The attribute information of the file stream may include information for determining pixel data of the image, such as the length, width and bit width byte number of the image.
[0128] Optionally, the attribute information of the file stream can be obtained from the bitmap file header description structure and the custom structure of the file stream. The bitmap file header description structure includes information about the file type, file size, data offset position, etc. For example, the bitmap file header description structure may include members bfType, bfSize, bfReserved, and bfOffBits. bfType is used to describe the file type, and the BMP file type is 'B', 'M'. bfSize is used to describe the byte size of the entire file, expressing the description information bytes and image data bytes. bfReserved is a blank character used for backup definition information. bfOffBits is used to describe the byte order offset unit from the file description header to the actual image data.
[0129] The custom structure is used to describe the bitmap image information BITMAPINFOHEADER, which can include the size of the information description body, the width and height of the image, the layer information of the image, the number of bits contained in a pixel value, etc. The bitmap image information BITMAPINFOHEADER can include members biSize, biWidth, biHeight, biPlanes, biBitCount, biCompression, biSizeImage, biXPelsPerMeter, biYPelsPerMeter, biClrUsed, and biClrImportant. biSize represents the data memory size of the information body, biWidth is used to describe the file resolution size: the width of the entire image, biHeight is used to describe the file resolution size, the height of the entire image, biPlanes is used to describe the layer information, the default value of BMP pictures is 1, and there are no additional layers, biBitCount is used to describe the number of data bits a pixel has, biCompression is used to describe whether the image pixels represented by the current file are compressed, biSizeImage is used to describe the total byte size of the current image, biXPelsPerMeter horizontal resolution, expressed in pixels / meter, biYPelsPerMeter vertical resolution, expressed in pixels / meter, biClrUsed indicates the number of color indexes in the color table actually used by the bitmap (if set to 0, it means that all palette items are used), biClrImportant indicates the number of color indexes that have an important impact on the image display. If it is 0, it means that they are all important.
[0130] S402: Determine the number of pixel bytes of each image based on the attribute information.
[0131] The image data processing module can calculate the number of pixel bytes of the image based on the length, width and bit width bytes of the image in the attribute information, so as to determine the size of the stored data file.
[0132] S403, determining the size of the stored data file based on the number of pixel bytes of each image.
[0133] The image data processing module can obtain the size of the data file that needs to be stored according to the number of pixel bytes of the image, so as to apply for memory space.
[0134] S404: Apply for target memory in the first storage module based on the size of the data file.
[0135] S405, and storing the pixel data of each image in the target memory.
[0136] The image data processing module can write the pixel data of the image into the applied storage space. For example, the image data processing module can write the name format and array size of the pixel array according to the resolution of the file stream, use a two-layer nested traversal method, write the RGB value of the pixel from the previous second storage module row by row and column by column to the target memory, and release the resources in the second storage module after the traversal is completed.
[0137] Optionally, the target memory can be used to store the target program code segment, and the pixel data of each image can be recorded in the array of the target program code segment. The aforementioned image display control system can obtain the pixel data of the image, such as the RGB value of the pixel, by loading the target program code segment.
[0138] In a possible implementation, the image display control system can support image display in a Linux system environment. Based on any of the above image display control systems, the image display control system can include a second display control module, such as Figure 5A Optionally, the image display control system may include the aforementioned first display control module. In some examples, the first display control module and the second display control module may be integrated into one, for example, a chip or a processor may serve as the aforementioned first display control module and the second display control module.
[0139] The second display control module can be used for:
[0140] Obtaining a device tree file of the target digital hardware circuit;
[0141] Based on the device tree file, determining control information of each circuit unit in the functional circuit module, wherein the control information includes software control interface information of each circuit unit and register information corresponding to each circuit unit;
[0142] Based on the DRM architecture and control information of each circuit unit, the target digital hardware circuit is controlled to output the target differential signal to the display connection port.
[0143] The second display control module can obtain the device tree file of the target digital hardware circuit, which can include the device tree information of some or all circuit units in the target digital hardware circuit. The device tree file of the target digital hardware circuit can reflect the hardware information and software control interface information of some or all circuit units in the target digital hardware circuit.
[0144] The kernel of the second display control module can obtain the control information of some or all circuit units in the target digital hardware circuit, so as to utilize the hardware information of each circuit unit and the software control interface to drive the corresponding circuit unit. For example, the kernel of the second display control module can support the DRM architecture, and can control the target digital hardware circuit to output the target differential signal to the display connection port based on the DRM architecture and the control information of some or all circuit units. Among them, some or all circuit units in the target digital hardware circuit may include: a first circuit unit (hdmi_vdma), a second circuit unit (video_time_ctrl) and a fourth circuit unit (dynamic_timing). The second display control module can control the driving of each circuit unit in some or all circuit units in the target digital hardware circuit based on the DRM architecture, so as to drive some or all circuit units in the target digital hardware circuit to work.
[0145] In the embodiment of the present application, the second display control module can support the LINUX operating system. Figure 5B The process diagram of the application layer performing image display through the second display control module is shown. The application program of the application layer can apply for a canvas through the surface flinger, and the HWC service can synthesize the layers provided by the surface flinger to form a picture.
[0146] In some examples, the HWC service interacts with the kernel space driver through the Libdrm library interface and the system call ioctl command, and displays the image on the display device through the second display control module based on the DRM driver architecture. In other examples, the HWC service can interact with the kernel space driver through the user space interface, such as the framebuffer interface, and display the image on the display device through the second display control module based on the DRM architecture.
[0147] Figure 5C The DRM architecture is shown as an example. The DRM architecture generally includes a FrameBuffer canvas component, a PLANE layer management component, a CRTC display controller component, an Encoder encoder component, a Connector connector component and a DRM component.
[0148] FrameBuffer canvas components are usually formatted before application, and then only operate on the display content of a single layer, which is independent of the hardware. In some application scenarios, the driver of the FrameBuffer component can implement the drm mode control of the existing fb framework, the callback function of the FrameBuffer component, create, release and manage the framebuffer, and provide ioctl commands to the user space.
[0149] In the PLANE layer management component, each Plane can represent an image layer. The final display image can be composed of one or more layers. The PLANE layer management component can be related to the display device. Some display devices support multiple layer overlay display, such as 3D rendering. In some application scenarios, the PLANE layer management component can have the function of DMA user layer driver.
[0150] The CRTC display controller component has the functions of display control, display timing management, resolution, refresh rate control, etc. It also takes on the functions of passing framebuffer data to the display device and updating framebuffer control. In some application scenarios, the CRTC display controller component is responsible for creating the management layer, controlling the creation / destruction of the plane layer, managing the clock driven by the DRM (which is also the clock registered by the consumer dynamic clock generator Dynamic Clock Generator), linking the aforementioned VideoTiming Controller unit driver, allowing the Video Timing Controller unit to drive the managed pixel timing, calling the DRM_DP_SUBSYSTEM function, calling dp_subsystem, registering various callback functions in crtc, etc.
[0151] The Encoder component can be responsible for monitoring the clock output by the CRTC and converting the clock (or timing) of the CRTC into the signal required by the external device, such as an HDMI converter. In some application scenarios, the driver of the Encoder component can include a core driver part and a user driver part. The driver of the Encoder component can enable the Encoder component to be linked with the user layer driver of the displayed encoder, call various callback functions defined by the user layer driver, and be responsible for monitoring the mode monitoring of the connected HDMI display device, external display device identification data (Extended Display Identification Data, edid) attribute management, etc. Among them, the displayed encoder can be a user-side driver for parsing the HDMI module display, which can cooperate with the call of the Connector component to provide various function interfaces for the Connector component to control the HDMI part, facilitating HDMI control.
[0152] The Connector component represents the connector that connects the physical display device, such as HDMI, DisplayPort, DSI bus, etc. The Connector component is usually bound to the Encoder component.
[0153] The DRM component can be used to match the main driver of the DRM device. For example, it can be matched and called through the acquired device tree files of each target digital hardware circuit to perform initialization configuration. For example, the DRM component can determine the control information of some circuit units in the functional circuit module based on the device tree file. The control information may include the software control interface information of the partial circuit units and the register information corresponding to each circuit unit, etc., to facilitate the control of the circuit unit information. Using the software control interface information of the partial circuit units, combined with the register information corresponding to each circuit unit, the circuit unit can be configured, driven, or called.
[0154] The DRM component can be used to control the initialization, registration and component function startup of other components except the DRM component in the second display control module, as well as the matching and monitoring of other components.
[0155] In a possible implementation, the second display control module may call the first driver file (xilinx_dma.c) to drive the AXI Video Direct Memory Access unit. The second display control module may call the second driver file (xilinx_vtc.c) to drive the video_time_ctrl component in the Video Timing Controller unit.
[0156] The second display control module can register the callback functions called by the DMA driver to complete the registration of the DMA core layer driver. The second display control module can call the third driver file (xilinx_drm_drv.c) to drive the Xilinx DRM KMS driver in the DRM framework, that is, to drive the aforementioned DRM component. The second display control module can call the fourth driver file (xilinx_drm_crtc.c) to drive the CRTC display controller component. The second display control module can call the sixth driver file (xilinx_drm_encoder.c) to drive the Encoder encoder component. The second display control module can call the seventh driver file (xilinx_drm_connector.c) to drive the Connector connector component. Optionally, the second display control module can call the fifth driver file (xilinx_drm_dp_sub.c) to drive the dp_subsystem interface component in the DRM framework. Dp_subsystem can refer to display port, which is another image display terminal device similar to HDMI.
[0157] The second display control module can call the client driver file (digilent_encoder.c) to drive the client of the Encoder component, and can create an Encoder slave object to bind the DRM-driven Encoder component so that the slave object has functions, which may include but are not limited to display standby mode, working mode status monitoring and modification, hot plug monitoring and other functions.
[0158] The second display control module can call the eighth driver file (xilinx_drm_fb.c)) to drive the FrameBuffer canvas component, and control the FrameBuffer canvas component to read the bmp image from the file system and echo the image to the HDMI.
[0159] The second display control module can call the ninth driver file (clk-digilent-dynclk.c) to drive the Dynamic Clock Generator unit. The Dynamic Clock Generator unit can register the divided clock to the DRM core clock system and wait for other components or devices to obtain the registered divided clock. The Dynamic Clock Generator unit can also cooperate with the DRM driver to change the TMDS working clock frequency according to the current resolution.
[0160] In one possible design, the device tree file of the target digital hardware circuit can be pre-configured. In some application scenarios, the second display control module can create a device tree engineering platform for the LINUX platform, compile and obtain the control information of some or all circuit units in the target digital hardware circuit based on the hardware description file (XSA file) of the target digital hardware circuit, and obtain the device tree file of the target digital hardware circuit. The second display control module can pre-store the device tree file of the target digital hardware circuit.
[0161] The device tree file of the target digital hardware circuit may include the device tree attribute information corresponding to the DRM driver. The device tree attribute information corresponding to the DRM driver may include the software interface information of the first circuit unit (hdmi_vdma), the software control interface information of the second circuit unit (video_time_ctrl), the software control interface information of the fourth circuit unit (dynamic_timing), and the software interface information of the fifth circuit unit (rgb_to_hdmi). Optionally, the device tree attribute information corresponding to the DRM driver may also include the software interface information of the target decoder client (e.g., hdmi_encoder_0) to facilitate the creation of the encoder's slave object as the client of the Encoder encoder component.
[0162] The device tree attribute information corresponding to the DRM driver can also reflect the correspondence between the components of the DRM architecture and the circuit units in the target digital hardware circuit. For example, the target layer in the PLANE layer management component in the DRM architecture corresponds to the fifth circuit unit (rgb_to_hdmi) and the first circuit unit (hdmi_vdma). When the second display control module drives the target layer in the PLANE layer management component, the fifth circuit unit (rgb_to_hdmi) and the first circuit unit (hdmi_vdma) are called in conjunction. For another example, the clock system in the DRM architecture corresponds to the fourth circuit unit (dynamic_timing), and the second display control module registers the clock of the fourth circuit unit (dynamic_timing) in the clock system of the DRM architecture so that other components can call the clock.
[0163] The device tree file of the target digital hardware circuit may include the device tree attribute information corresponding to the encoder's slave object, and the device tree attribute information is used to describe the encoder's driver interface for the encoder driver in the DRM architecture. The device tree attribute information corresponding to the encoder's slave object may include a compatible attribute and a Digilent, edid-i2c parameter. The compatible attribute is used to match the encoder driver containing the keyword. The Digilent, edid-i2c parameter is used to specify the configuration I2C interface used by the current display device HDMI, so as to obtain the HDMI edid number through the I2C driver.
[0164] The device tree file of the target digital hardware circuit may include device tree attribute information of the second circuit unit (video_time_ctrl). The device tree attribute information of the second circuit unit (video_time_ctrl) may include register information of the second circuit unit (video_time_ctrl) and parameters related to the function of the second circuit unit (video_time_ctrl).
[0165] The device tree file of the target digital hardware circuit may include device tree attribute information of the fourth circuit unit (dynamic_timing). The device tree attribute information of the fourth circuit unit (dynamic_timing) may include register information of the fourth circuit unit (dynamic_timing) and parameters related to the function of the fourth circuit unit (dynamic_timing).
[0166] The device tree file of the target digital hardware circuit may include device tree attribute information of the first circuit unit (hdmi_vdma). The device tree attribute information of the first circuit unit (hdmi_vdma) may include register information of the first circuit unit (hdmi_vdma) and parameters related to the function of the first circuit unit (hdmi_vdma).
[0167] The second display control module controls the target digital hardware circuit to output the target differential signal to the display connection port based on the DRM architecture and the control information of the partial circuit unit, and may perform the following process:
[0168] The second display control module can drive the DRM component to initialize each component in the DRM framework. The second display control module can drive the Encoder component, the Connector component, and the CRTC display controller component.
[0169] The second display control module can drive the FrameBuffer canvas component, wherein the FrameBuffer canvas component is bound to the target layer in the PLANE layer management component. The information of the target layer can be obtained from the device tree file of the target digital hardware circuit.
[0170] The second display control module can drive the target layer in the PLANE layer management component and execute the first callback function. In some examples, the first callback function can be configured in a driver file of the PLANE layer management component so that the first callback function is executed when the target layer of the PLANE layer management component is driven.
[0171] The second display control module executes the first callback function to map a storage space memory, and calls the data transmission function of the first circuit unit (hdmi_vdma), so that the first circuit unit (hdmi_vdma) moves the pixel data to the mapped storage space memory.
[0172] The second display control module can drive the CRTC display controller component, the Encoder component, and the Connector component to move the pixel data to the video_out_ctrl component to produce image stream data and then output it to the rgb_to_hdmi component. The rgb_to_hdmi component can convert the image stream data into a target differential signal based on the second pixel timing, and output the target differential signal to the display connection port. In some examples, the second pixel timing can be a clock resource that the second display control module registers with the DRM core clock system using the software control interface information and register information of the dynamic_timing component.
[0173] In one possible implementation, please combine Figure 5D In the process of controlling the operation of the target digital hardware circuit, the second display control module uses the driver of the dynamic clock component (dynamic_timing) and the display terminal decoder component (such as the HDMI of the encoder) as the client driver and the DRM component driver (DRM driver) as the server driver based on the DRM architecture and the control information of some circuit units.
[0174] The second display control module can call the DRM component driver (DRM driver) to start the initialization operation of the components in the DRM architecture. The second display control module can perform the operation of initializing the resolution related information (drm_mode_config init). For example, drm_mode_config init may include initializing parameters such as the height and width of the actual pixel data, the effective pixel width of the line synchronization of a frame of data, and the effective pixel height of the field synchronization, as well as the mode configuration structure parameters (such as Figure 5D Initialize it using the mode config funcs in .
[0175] The mode configuration structure can be used to bind the initialization function pointer of framerbuffer and poll the interface configuration function to monitor output changes. Among them: the bound framerbuffer initialization function can dynamically reinitialize the framerbuffer component, and the output polling can monitor the hot plug event of framerbuffer to update the canvas data, etc.
[0176] The dynamic clock driver registers the clock resource node to the Linux clock tree, such as registering the pixel clock. For example, the of_clk_add_provider interface is called to add it to the Linux clock common framework (Linux CCF), and other devices can use the clock resource node as clock consumers.
[0177] Such a design can realize the clock resources provided by the dynamic_timing component provided by the kernel clock universal framework, such as the aforementioned second pixel timing, so that other components in the DRM architecture can use the clock resources. In some examples, the second display control module can obtain the handle of the target clock from the device tree information in the dynamic_timing component and register it in the universal clock framework (Linux CCF). The device tree information in the dynamic_timing component may include information about the target clock, and the target clock may be a clock that matches the resolution of the HDMI terminal to which the target digital hardware circuit is connected.
[0178] The second display control module can be connected to the handle of the target clock through the clock acquisition interface (devm_clk_get) to obtain the callback function functions of the registered clock, such as the clock frequency calculation callback function, the clock frequency setting callback function, the enable clock callback function, the disable clock callback function, and the like.
[0179] In the case where the display device connected to the target digital hardware circuit is of HDMI type, the Encoder decoder component driver (encoder_customer driver) can use the LINUX platform device driver registration interface to register a slave encoder device (also called encoder slave device) of the DRM component with the kernel. Figure 5D The sruct drm_encoder_slave operation in the encoder is defined. The encoder slave device encoder->slave_funcs various functions are defined. These functions can be called repeatedly when the Connector component is linked to the HDMI display. The DRM component driver can load and check the working status of various components such as the CRTC display controller component, the Encoder decoder component and the Connector component.
[0180] The second display control module can create a CRTC display controller component, also Figure 5D The create ctrc operation in drives the CRTC display controller component, so that the CRTC display controller component can obtain the number of canvases from the device tree file and generate canvases, obtain the canvas pixel format information, and control the call of the Video TimingController unit driver and the clock driver of the dynamic_timing component. The Connector connector component can distinguish whether the display device is a regular HDMI device or a DisplayPort device. The Connector connector component can call the corresponding display driver code according to the type of display device. The Encoder decoder component driver can obtain the registered encoder-slaver device and reference the registered slave-funcs function.
[0181] The create ctrc operation also includes the plane manager probe operation, ctrc->pixel clock operation, and VTC probe operation. The plane manager probe operation registers a plane component and specifies that its image source comes from hdmi_vdma. The ctrc->pixel clock operation obtains the clock source, which is the clock resource node registered by the dynamic_timing component in the Linux clock tree. In the VTC probe operation, if the current device tree file specifies the use of the video_timing_ctrl component, the video_timing_ctrl component is initialized, as well as a series of information for specifying image stream data synchronization, to convert pixel data into image stream data.
[0182] The second display control module can then search the device tree for operations (also Figure 5D In Prase from DT), create the Encoder decoder component (also Figure 5D In the create encoder operation in DT, the encoder driver is called to initialize the encoder component.
[0183] The second display control module can bind a Connector component to the created Encoder decoder component. Figure 5D Each encoder followed with a connector operation in. Each registered encoder decoder needs to be bound to a connector. This function is mainly for the DRM framework to support multiple displays to work simultaneously, so that a DRM device can support multiple HDMI displays of different content. Therefore, each connector created needs to be bound to the terminal decoding function of each corresponding encoder.
[0184] Optionally, the second display control module can call the field blanking (vblank) function, which is also Figure 5D The drmvblank init operation in.
[0185] The second display control module can call the first preset function drm_ctrc_get_format to obtain the data format type of the rgb_to_hdmi component corresponding to the target layer through the device tree file of the target digital hardware circuit.
[0186] The second display control module can call the second preset function drm format info to implement the parameter function of obtaining the data format type of the rgb_to_hdmi component.
[0187] The second display control module can call the third preset function drm_fb_init to provide hardware resources of the framebuffer and provide a driver interface for the upper layer to write the framebuffer user program.
[0188] In the DRM driver framework, the core driver of the Encoder decoder component creates the encoder device function, creates and manages the encoder memory, configures the default CRTC display controller component as 1, and then initializes the encoder driven by the DRM component, and bundles the drm_encoder_helper_funcs of the Encoder decoder component core driver. When defining the various function functions of the core driver here, you can directly call the various function callback functions of the registered slave encoder to realize the response of the Connector connector component to the user Encoder decoder component driver.
[0189] The process of the second display control module controlling the target digital hardware circuit based on the DRM architecture is that the dynamic_clk component driver generates the clock frequency required for actual display and registers it in the Linux clock system. The Encoder decoder component user layer driver implements HDMI hot plugging, as well as the specific functions of mode configuration and control, and is bound to the core encoder driver of the DRM component. The DRM component driver creates a CRTC display controller component by creating a DRM component. The CRTC display controller component is responsible for managing and calling the clock and timing required for display, and checks the currently used canvas and controls the canvas. The current display mode parameters are obtained from the CRTC display controller component, and the hdmi_vdma component in the target digital hardware circuit is called through the Plane layer component driver to move the corresponding pixel data to the mapped storage space memory when the HDMI display needs to refresh the image, and initialize the fb device. When all modules of the DRM component driver are initialized normally, the / dev / fb device can be created and mapped to the target device file. The user layer application can create a memory space mapping (such as zero copy memory space mapping) by operating the target device file. By performing data frame pixel value operations on the mapped space memory, the DMA function in the canvas is called to realize the data transfer function of the hdmi_vdma component, and the DRM component driver is linked to complete the display port display.
[0190] From the above introduction, it can be seen that the driver layer in the second display control module can implement display control based on the DRM architecture, and can provide an operable / dev / fb* device to the user space. The user-mode program can use this device file to write control commands to implement operations such as control and refresh of specific display data. Figure 5E A frame buffer test process is shown. The corresponding test case is written to read the BMP image stored in the file system, obtain the corresponding pixel data, and refresh the video memory, so as to implement the DRM driver under Linux and the image display system test. The frame buffer test process may include the following steps:
[0191] S501, obtaining fixed display parameters.
[0192] S502: Obtain configurable display parameters.
[0193] S503: Obtain resolution and pixel width from configurable display parameters.
[0194] S504, mapping the video memory by pixel space size.
[0195] S505, open the BMP file.
[0196] S506, allocating a BMP pixel data memory storage area.
[0197] S507, shift to the pixel data area and copy the image data.
[0198] S508, setting the video memory data according to the row offset until all the caches are processed.
[0199] S509, release space and recycle resources.
[0200] In step S501 and step S502, the second display control module can obtain two important structure parameters of the Frame Buffer by operating the fb device command, namely, the fixed information of the FrameBuffer (struct fb_fix_screeninfo) and the variable screen information of the FrameBuffer (struct fb_var_screeninfo).
[0201] The fixed information of FrameBuffer (struct fb_fix_screeninfo) can include the device driver name (id), the starting physical address of the video memory (smem_start), the video memory size (smem_len), the graphics card type (type), the additional type (type_aux), the color mode (visual), the horizontal PAN display parameters (xpanstep), the vertical PAN display parameters (ypanstep), ywrapstep, the number of bytes per line (line_length), the video memory mapping I / O first address (mmio_start), the video memory mapping I / O length (mmio_len), and the hardware acceleration device supported by the display (accel).
[0202] The variable screen information (struct fb_var_screeninfo) of FrameBuffer can include the visible screen width (number of pixels per row xres), the visible screen height (number of pixels per column yres), the virtual screen width (image width in video memory xres_virtual), the virtual screen height (image height in video memory) number of pixels per yres_virtual, the row offset (xoffset) between virtual and visible (actual), the column offset (yoffset) between virtual and visible (actual), the number of bits per pixel (bits_per_pixel), the grayscale (grayscale), the bit field information of red, green, blue, and transparency in the color component (red, green, blue, t ransp), whether it is a standard pixel format (nonstd), the time when the setting takes effect (activate), the screen height and width (height, width), the acceleration flag (accel_flags), the time required to display a point (pixclock), the left blanking signal (left_margin), the right blanking signal (right_margin), the horizontal synchronization duration (hsync_len), the upper blanking signal (upper_margin), the lower blanking signal (lower_margin), the vertical synchronization duration (vsync_lken), the synchronization signal mode (sync), vmode, and the clockwise rotation angle (rotate).
[0203] Based on the same inventive concept, the embodiment of the present application also provides an image display control method, which can be applied to an image display control system, and the image display control system can include the aforementioned target digital hardware circuit and a first storage module. The image display control method provided in this embodiment can implement a display control process based on an ARM-based non-operating system.
[0204] like Figure 6 As shown, the image display control method may include the following steps:
[0205] S601, obtaining a board support package corresponding to a target digital hardware circuit in the image display control system.
[0206] S602: Based on a board support package corresponding to the target digital hardware circuit, obtain register information and hardware parameter configuration information corresponding to the target digital hardware circuit.
[0207] S603: Drive each circuit unit in the functional circuit module to operate based on the register information and hardware parameter configuration information corresponding to the target digital hardware circuit.
[0208] The specific execution process of the image display control method provided in this embodiment can refer to the relevant introduction of the first display control module in the aforementioned embodiment, which will not be repeated here.
[0209] In a possible implementation, the image display control method may further include: acquiring an image in a video from a second storage module, the video including at least one image, and the image being an image in BMP format; generating pixel data of the image based on the format information of the BMP image, and writing the pixel data of the image into a first storage module in the image display control system, so that the target digital hardware circuit acquires the pixel data of the image in the video from the first storage module.
[0210] Based on the same inventive concept, the embodiment of the present application also provides an image display control method, which can be applied to an image display control system, and the image display control system can include the aforementioned target digital hardware circuit and a first storage module. The image display control method provided in this embodiment can implement a display control process based on a LINUX operating system. Figure 7 As shown, the image display control method may include the following steps:
[0211] S701, obtaining a device tree file of a target digital hardware circuit pair in the image display control system.
[0212] S702: Determine information of each circuit unit in a functional circuit module of the target digital hardware circuit based on the device tree file.
[0213] S703 , based on the DRM architecture and the information of each circuit unit, controlling the target digital hardware circuit to output the target differential signal to the display connection port.
[0214] The specific execution process of the image display control method provided in this embodiment can refer to the relevant introduction of the second display control module in the aforementioned embodiment, which will not be repeated here.
[0215] Based on the same inventive concept, the embodiment of the present application also provides an image display control method, which can be applied to an image display control system, and the image display control system can include the aforementioned target digital hardware circuit and a first storage module. The image display control method provided in this embodiment can implement a display control process based on a LINUX operating system or a display control process based on an ARM operating system without an operating system. The method can be executed by a processor, such as Figure 8 As shown, the image display control method may include the following steps:
[0216] S801, obtaining display control mode parameters.
[0217] In specific implementation, the display control mode parameter may indicate whether there is an operating system in the electronic device where the image display control system is located. For example, the first display control mode parameter may indicate that there is no operating system. The second display control mode parameter may indicate that there is a target operating system.
[0218] S802, controlling the image display control system by adopting a driving mode corresponding to the display control mode parameter from a plurality of driving modes.
[0219] In specific implementation, the processor may support multiple driving modes. The processor may select a driving mode corresponding to the display control mode parameter from a driving mode corresponding to no operating system and a driving mode corresponding to a target operating system to control the image display control system.
[0220] For example, if the display control mode parameter indicates that there is no operating system, the processor may perform the following operations:
[0221] Based on a board support package (BSP) corresponding to the target digital hardware circuit, obtaining register information and hardware parameter configuration information corresponding to the target digital hardware circuit;
[0222] And based on the register information and hardware parameter configuration information corresponding to the target digital hardware circuit, each circuit unit in the functional circuit module is driven to work.
[0223] For another example, if the display control mode parameter represents a target operating system, the following operations are performed:
[0224] Obtaining a device tree file of the target digital hardware circuit;
[0225] Based on the device tree file, determining interface information of each circuit unit in the functional circuit module;
[0226] Based on the DRM architecture and the interface information of each circuit unit, the target digital hardware circuit is controlled to output the target differential signal to the display connection port.
[0227] Based on the same inventive concept, an embodiment of the present disclosure provides a computer storage medium, the computer storage medium includes: a computer program code, when the computer program code is executed on a computer, the computer executes any of the image display control methods discussed above. Since the principle of solving the problem by the above-mentioned computer storage medium is similar to that of the image display control method, the implementation of the above-mentioned computer storage medium can refer to the implementation of the method, and the repeated parts will not be repeated.
[0228] In the specific implementation process, the computer storage medium may include: Universal Serial Bus Flash Drive (USB), mobile hard disk, read-only memory (ROM), random access memory (RAM), magnetic disk or optical disk, and other storage media that can store program codes.
[0229] Based on the same inventive concept, the embodiment of the present disclosure also provides a computer program product, which includes: computer program code, when the computer program code is run on a computer, the computer executes any of the image display control methods discussed above. Since the principle of solving the problem by the above computer program product is similar to that of the image display control method, the implementation of the above computer program product can refer to the implementation of the method, and the repeated parts will not be repeated.
[0230] The computer program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination thereof. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more conductors, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof.
[0231] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0232] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0233] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0234] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0235] Although the preferred embodiments of the present invention have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.
[0236] Obviously, those skilled in the art can make various changes and modifications to the embodiments of the present invention without departing from the spirit and scope of the embodiments of the present invention. Thus, if these modifications and variations of the embodiments of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.
Claims
1. An image display control system, characterized in that: include: A first storage module, used for storing pixel data of an image; The target digital hardware circuit comprises a storage connection port, a display connection port and a functional circuit module, wherein the storage connection port is connected to the storage module, and the display connection port is connected to the display device; The functional circuit module comprises: A first circuit unit, configured to provide pixel data in the first storage module to other circuit units; A second circuit unit, used for providing a first pixel timing for image matching; A third circuit unit, configured to process the pixel data into image stream data based on the first pixel timing; A fourth circuit unit, configured to provide a second pixel timing based on a resolution corresponding to the display device; The fifth circuit unit is used to convert the image stream data into a target differential signal based on the second pixel timing, and output the target differential signal to the display connection port.
2. The system according to claim 1, characterized in that The system further includes: a first display control module, wherein the first display control module is configured to: Based on a board support package (BSP) corresponding to the target digital hardware circuit, obtaining register information and hardware parameter configuration information corresponding to the target digital hardware circuit; Based on the register information and hardware parameter configuration information corresponding to the target digital hardware circuit, each circuit unit in the functional circuit module is driven to operate.
3. The system according to claim 2, characterized in that The system further comprises: a second storage module and an image data processing module; The second storage module is used to store a video, wherein the video includes at least one image, and the image is an image in a BMP format; The image data processing module is used for: Based on the format information of the BMP image, pixel data of the image is generated, and the pixel data of the image is written into the first storage module.
4. The system according to claim 1, characterized in that The system further includes: a second display control module, wherein the second display control module is configured to: Obtaining a device tree file of the target digital hardware circuit; Based on the device tree file, determining control information of some circuit units in the functional circuit module; Based on the DRM architecture and the control information of the partial circuit unit, the target digital hardware circuit is controlled to output the target differential signal to the display connection port.
5. An image display control method, characterized in that: Applied to the image display control system as claimed in claim 1, the method comprises: Obtaining a board support package corresponding to a target digital hardware circuit in the image display control system; Based on a board support package (BSP) corresponding to the target digital hardware circuit, obtaining register information and hardware parameter configuration information corresponding to the target digital hardware circuit; And based on the register information and hardware parameter configuration information corresponding to the target digital hardware circuit, each circuit unit in the functional circuit module is driven to work.
6. The method according to claim 5, characterized in that The method further comprises: Acquire an image in a video from a second storage module, wherein the video includes at least one image, and the image is an image in a BMP format; Based on the format information of the BMP image, pixel data of the image is generated, and the pixel data of the image is written into the first storage module in the image display control system.
7. An image display control method, characterized in that: Applied to the image display control system as claimed in claim 1, the method comprises: Acquire a device tree file of a target digital hardware circuit pair in the image display control system; Based on the device tree file, determining control information of some circuit units in the functional circuit module; Based on the DRM architecture and the control information of the partial circuit unit, the target digital hardware circuit is controlled to output the target differential signal to the display connection port.
8. An image display control method, characterized in that: Applied to the image display control system as claimed in claim 1, the method comprises: Get display control mode parameters; The image display control system is controlled by adopting a driving mode corresponding to the display control mode parameter from a plurality of driving modes.
9. The method according to claim 8, characterized in that The step of controlling the image display control system by adopting the driving mode corresponding to the display control mode parameter from among the plurality of driving modes comprises: If the display control mode parameter indicates that there is no operating system, perform the following operations: Based on a board support package (BSP) corresponding to the target digital hardware circuit, obtaining register information and hardware parameter configuration information corresponding to the target digital hardware circuit; Based on the register information and hardware parameter configuration information corresponding to the target digital hardware circuit, each circuit unit in the functional circuit module is driven to operate.
10. The method according to claim 9, characterized in that The step of controlling the image display control system by adopting the driving mode corresponding to the display control mode parameter from a plurality of driving modes further comprises: If the display control mode parameter indicates a target operating system, the following operations are performed: Obtaining a device tree file of the target digital hardware circuit; Based on the device tree file, determining control information of some circuit units in the functional circuit module; Based on the DRM architecture and the control information of the partial circuit unit, the target digital hardware circuit is controlled to output the target differential signal to the display connection port.
11. A computer-readable storage medium, characterized in that: When the instructions in the computer storage medium are executed by a processor, the processor is caused to perform the method according to any one of claims 5 to 10.
Citation Information
Cited By
FPGA-based bicubic interpolation optimization algorithm for video image acquisition system
CN119338671A
A bicubic interpolation optimization method for video image acquisition system based on FPGA
CN119338671B
