Video frame image transmission method, sending card and video frame image display system

文档序号:38504 发布日期:2021-09-24 浏览:18次 中文

阅读说明:本技术 一种视频帧图像传输方法、发送卡及视频帧图像显示系统 (Video frame image transmission method, sending card and video frame image display system ) 是由 周锦志 余晓鑫 于 2021-05-27 设计创作,主要内容包括:本发明涉及LED显示技术领域,具体公开了一种视频帧图像传输方法、发送卡及视频帧图像显示系统,视频帧图像的传输方法包括:获取数据缓存参数、网口面积设置参数、视频帧图像数据;根据缓存参数以及预设的数据选取策略从视频帧图像数据中选取预缓存的图像数据,并将预缓存的图像数据写入同步动态随机存储器中;通过网口面积设置参数以及预设的网口面积设置策略对若干个输出网口的数据传输面积进行设置;将同步动态随机存储器中存储的图像数据从若干个输出网口输出。本发明相比于现有技术改变了缓冲数据量,从而实现数据的读取比写入更快,降低了图像数据传输的延迟时间,进而可提高图像显示速率。(The invention relates to the technical field of LED display, and particularly discloses a video frame image transmission method, a sending card and a video frame image display system, wherein the video frame image transmission method comprises the following steps: acquiring data caching parameters, network port area setting parameters and video frame image data; selecting pre-cached image data from the video frame image data according to the caching parameters and a preset data selection strategy, and writing the pre-cached image data into a synchronous dynamic random access memory; setting the data transmission area of a plurality of output network ports through network port area setting parameters and a preset network port area setting strategy; and outputting the image data stored in the synchronous dynamic random access memory from a plurality of output network ports. Compared with the prior art, the method changes the buffer data amount, thereby realizing that the data reading is faster than the data writing, reducing the delay time of image data transmission and further improving the image display speed.)

1. A method for transmitting video frame images, comprising:

acquiring data caching parameters and network port area setting parameters; the data caching parameters and the network port area setting parameters are set through an upper computer;

acquiring video frame image data;

selecting pre-cached image data from the video frame image data according to the caching parameters and a preset data selection strategy, and writing the pre-cached image data into a synchronous dynamic random access memory; the data volume of the pre-cached image data is less than one frame;

setting the data transmission area of a plurality of output network ports according to the network port area setting parameters and a preset network port area setting strategy;

and outputting the image data stored in the synchronous dynamic random access memory from a plurality of output network ports.

2. The method of claim 1, wherein the data buffering parameters include a pre-buffer data amount and a buffer area.

3. The video frame image transmission method according to claim 1, wherein the data amount of the image data that is pre-buffered is 0.2 frame to 0.5 frame.

4. The method according to claim 1, wherein the portal area setting parameter comprises a portal start coordinate and a portal width and height.

5. The method for transmitting video frame images according to claim 4, wherein the setting of the data transmission area of the output ports through the port area setting parameter and the preset port area setting strategy comprises:

setting the area of the net openings of the output net openings into a vertical bar shape with the height larger than the width according to the coordinates of the starting points of the net openings and the width and the height of the net openings;

combining the net port areas of each output net port in the row direction to form a total net port area; and taking the serial number of the output network port as a column number in the total network port area.

6. The video frame image transmission method according to claim 5, wherein said outputting said image data stored in said synchronous dynamic random access memory from a plurality of output ports comprises:

and distributing each line of the image data to a plurality of output network ports for parallel output.

7. The video frame image transmission method of claim 1, further comprising:

acquiring a target frame rate parameter; setting the target frame rate parameter through an upper computer;

calculating a periodic buffer number required by a system clock according to the target frame rate parameter and a preset output frequency calculation strategy, and determining a data output frequency according to the periodic buffer number; and

and outputting the image data stored in the synchronous dynamic random access memory from a plurality of output network ports according to the data output frequency.

8. A transmitting card is characterized by comprising an input interface, an FPGA chip, a synchronous dynamic random access memory and a plurality of output network ports, wherein:

the input interface is connected with the FPGA chip and is used for acquiring data cache parameters and network port area setting parameters and acquiring video frame image data; the data caching parameters and the network port area setting parameters are set through an upper computer;

the FPGA chip is connected with the input interface, the synchronous dynamic random access memory and the output network port, and is used for selecting pre-cached image data from the video frame image data according to the cache parameters and a preset data selection strategy, and setting the data transmission areas of the output network ports according to the network port area setting parameters and the preset network port area setting strategy; the data volume of the pre-cached image data is less than one frame;

the synchronous dynamic random access memory is connected with the FPGA chip and is used for storing the pre-cached image data;

and the output network ports are connected with the FPGA chip and used for outputting the image data.

9. The transmitter card of claim 8 wherein the input interface comprises a parameter input interface and a data input interface, wherein:

the parameter input interface is connected with the FPGA chip and used for acquiring the data cache parameters and the network port area setting parameters;

the data input interface is connected with the FPGA chip and used for acquiring video frame image data.

10. The utility model provides a video frame image display system which characterized in that, includes host computer, sends card, receiving card and LED display screen, wherein:

the upper computer is in communication connection with the sending card, and data caching parameters, network port area setting parameters and a plurality of video frame image data are stored in the upper computer;

the sending card is in communication connection with the upper computer and the receiving card, and the sending card is the sending card in any one of claims 8 to 9;

the receiving card is in communication connection with the sending card and the LED display screen, and is used for receiving the image data and dividing the image data into a plurality of video frame images;

the LED display screen is in communication connection with the receiving card and is used for displaying the video frame images.

Technical Field

The invention relates to the technical field of LED display, in particular to a video frame image transmission method, a sending card and a video frame image display system.

Background

In the prior art, a sending card formed by an FPGA is used to send a video frame image to a receiving card, so as to display the video frame image in an LED box connected to the receiving card, specifically, a frame of video frame image of an input video source is obtained through an input interface (such as an HDMI interface or a DVI interface), and is written into a synchronous dynamic random access memory (SDRAM/DDR3), and then the video frame image is transmitted to each network port set in the FPGA through the synchronous dynamic random access memory, wherein after the video frame image in the synchronous dynamic random access memory is read and obtained, the video frame image of the next frame is continuously written into the synchronous dynamic random access memory, and is continuously transmitted to the outside, which may be referred to as a Ping-Pong operation, but there is a problem at present: the delay time for writing and reading video frame images reaches one frame or more, and certain interference influence is caused for some use scenes which pursue time and need low delay.

Therefore, there is a need to find a new technical solution to solve the above problems.

Disclosure of Invention

The invention provides a video frame image transmission method, a sending card and a video frame image display system, aiming at the technical problems in the prior art.

A method for transmitting a video frame image, comprising:

acquiring data caching parameters and network port area setting parameters; setting data caching parameters and network port area setting parameters through an upper computer;

acquiring video frame image data;

selecting pre-cached image data from the video frame image data according to the caching parameters and a preset data selection strategy, and writing the pre-cached image data into a synchronous dynamic random access memory; the data volume of the pre-cached image data is less than one frame;

setting the data transmission area of a plurality of output network ports through network port area setting parameters and a preset network port area setting strategy;

and outputting the image data stored in the synchronous dynamic random access memory from a plurality of output network ports.

Further, the data caching parameters include a pre-caching data amount and a caching area.

Further, the data amount of the pre-buffered image data is 0.2 frame to 0.5 frame.

Further, the network port area setting parameters include a network port starting point coordinate and a network port width and height.

Further, set up the data transmission area of a plurality of output net gape through net gape area setting parameter and net gape area setting strategy that predetermines, include:

setting the area of the net openings of the output net openings into a vertical bar shape with the height larger than the width according to the coordinates of the starting points of the net openings and the width and the height of the net openings;

combining the net port areas of each output net port in the row direction to form a total net port area; the serial number of the output network port is used as the column number in the total network port area.

Further, outputting the image data stored in the synchronous dynamic random access memory from a plurality of output ports, including:

and distributing each line of the image data to a plurality of output network ports for parallel output.

Further, the video frame image transmission method further includes:

acquiring a target frame rate parameter; setting a target frame rate parameter through an upper computer;

calculating a periodic buffer number required by a system clock according to the target frame rate parameter and a preset output frequency calculation strategy, and determining a data output frequency according to the periodic buffer number; and

and outputting the image data stored in the synchronous dynamic random access memory from a plurality of output network ports according to the data output frequency.

The invention also comprises a sending card, which comprises an input interface, an FPGA chip, a synchronous dynamic random access memory and a plurality of output network ports, wherein:

the input interface is connected with the FPGA chip and used for acquiring data cache parameters and network port area setting parameters and acquiring video frame image data; setting data caching parameters and network port area setting parameters through an upper computer;

the FPGA chip is connected with the input interface, the synchronous dynamic random access memory and the output network port and is used for selecting pre-cached image data from video frame image data according to a caching parameter and a preset data selection strategy and setting the data transmission areas of the output network ports according to a network port area setting parameter and a preset network port area setting strategy; the data volume of the pre-cached image data is less than one frame;

the synchronous dynamic random access memory is connected with the FPGA chip and used for storing pre-cached image data;

and the output network ports are connected with the FPGA chip and used for outputting the image data.

Further, the input interface comprises a parameter input interface and a data input interface, wherein:

the parameter input interface is connected with the FPGA chip and used for acquiring data cache parameters and network port area setting parameters;

and the data input interface is connected with the FPGA chip and is used for acquiring video frame image data.

The invention also comprises a video frame image display system, which comprises an upper computer, a sending card, a receiving card and an LED display screen, wherein:

the upper computer is in communication connection with the sending card, and data caching parameters, network port area setting parameters and a plurality of video frame image data are stored in the upper computer;

the sending card is in communication connection with the upper computer and the receiving card, and the sending card is the sending card;

the receiving card is in communication connection with the sending card and the LED display screen and is used for receiving the image data and dividing the image data into a plurality of video frame images;

and the LED display screen is in communication connection with the receiving card and is used for displaying video frame images.

According to the video frame image transmission method, the sending card and the video frame image display system, the pre-cached image data are selected from the video frame image data according to the caching parameters and the preset data selection strategy, and then the pre-cached image data are written into the synchronous dynamic random access memory, so that the image data with the pre-cached data amount smaller than one frame are buffered, compared with the prior art, the buffered data amount is changed, the data reading is faster than the data writing, the delay time of the image data transmission is reduced, and the image display rate can be improved.

Drawings

In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.

FIG. 1 is a flowchart illustrating a method for transmitting video frame images according to an embodiment of the present invention;

FIG. 2 is a flowchart illustrating a step of a video frame image transmission method according to an embodiment of the present invention;

FIG. 3 is a flowchart illustrating a method for transmitting video frame images according to an embodiment of the present invention;

FIG. 4 is a structural assembly diagram (one) of a transmitting card according to an embodiment of the present invention;

FIG. 5 is a structural diagram of a transmitting card according to an embodiment of the present invention;

fig. 6 is a structural assembly diagram of a video frame image display system according to an embodiment of the present invention.

Detailed Description

The technical solutions in the embodiments of the present invention will be described clearly and completely with reference to the accompanying drawings in the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.

In order to solve the problem that the delay time of the writing and reading processes of a video frame image in the prior art reaches one frame or more than one frame, and is not suitable for a low-delay use scene, an embodiment of the present invention provides a transmission method of a video frame image, as shown in fig. 1, including the following steps:

step S10: and acquiring data cache parameters and network port area setting parameters.

And setting the data cache parameters and the network port area setting parameters through an upper computer. Technicians can set data cache parameters and network port area setting parameters through upper computer software. In the step, data caching parameters and network port area setting parameters are obtained from an upper computer.

Step S20: video frame image data is acquired.

The video frame image data is one frame image size, that is, the execution subject of the method acquires the video frame image data in a frame-by-frame manner.

Step S30: and selecting pre-cached image data from the video frame image data according to the caching parameters and a preset data selection strategy, and writing the pre-cached image data into the synchronous dynamic random access memory.

The pre-buffered image data selected in this embodiment is a part of image data of a video frame, that is, the data size of the pre-buffered image data is less than one frame, so the time taken for buffering the pre-buffered image data is certainly less than the time taken for buffering one frame of image data.

The data caching parameters in this embodiment may include a pre-cache data amount and a cache area. The pre-buffer data amount is the data amount of the pre-buffered image data, and is preferably set to 0.2 frame to 0.5 frame. The cache area is a designated position or area where the pre-cached image data is written into the synchronous dynamic random access memory.

Step S40: and setting the data transmission area of the output network ports through the network port area setting parameters and a preset network port area setting strategy.

This step may be performed after step S10, or after step S30 ends. In this step, the data transfer areas of the output ports are set, and certainly, the data transfer area set in this step is smaller than or equal to the maximum pixel data amount that can be carried by the output port.

The parameters for setting the area of the net opening should include the coordinates of the starting point of the net opening and the width and height of the net opening. The portal start coordinate includes X, Y two parameters. The present embodiment does not specifically limit the specific values of the parameters of the network port starting point coordinate, the network port width, and the network port height. As an embodiment, as shown in fig. 2, the step S40 of setting the data transmission areas of the output ports according to the port area setting parameters and the preset port area setting policy includes:

step S401: and setting the area of the net openings of the output net openings into a vertical bar shape with the height larger than the width according to the coordinates of the starting point of the net openings and the width and the height of the net openings.

Step S402: combining the net port areas of each output net port in the row direction to form a total net port area; the serial number of the output network port is used as the column number in the total network port area.

Each output network port has its own serial number, and the serial numbers of each row in the total network port area correspond to the serial numbers of each output network port one by one.

In this embodiment, the output port is not set to be a horizontal bar (i.e. the width is larger than the height), because the image data is output from the output port in a row, the problem that the input bandwidth and the output bandwidth are not matched exists, and the situation can be avoided only by caching more data through the synchronous dynamic random access memory, so that the invention sets the port area of the output port to be a vertical bar, a plurality of output ports can simultaneously transmit data, when each row of image data is split by each output port, the bandwidth of the output port is ensured to be larger than or equal to the bandwidth of the video frame image data input, the blocking phenomenon in the video frame image data input is prevented, and a synchronous dynamic random access memory is not needed to cache a lot of data, so that the delay caused by the image data transmission is remarkably reduced.

Step S50: and outputting the image data stored in the synchronous dynamic random access memory from a plurality of output network ports.

In step S40, the data transfer area of the output port is set, and in this step, image data is output through the output port for which the data transfer area is set.

In combination with the preferred embodiment of the previous step, the step S50 of outputting the image data stored in the synchronous dynamic random access memory from a plurality of output ports includes: each line of the image data is distributed to a plurality of output network ports for parallel output, namely, each output network port reads and outputs the corresponding content of each line of the image data, so that the problem of unmatched input bandwidth and output bandwidth is solved, and the delay caused by image data transmission is reduced.

The content of the video frame image data obtained in this embodiment is consistent with the content of the image data buffered in the sdram, and the data content does not change during the data transmission process. In the process of continuously acquiring video frame image data, the video frame image data is continuously input frame by frame, in the process of outputting the image data, the image data is also continuously output, and only the time length spent by caching the 'pre-cached image data' is different from the input time to the output time, namely the vertical synchronizing signal (VSYNC) is delayed backwards. Taking a 60Hz transfer frequency as an example, if the pre-buffered image data is set to 0.2 frame, the time lapse for VSYNC isOne frame of image is delayed by 0.2 frame, i.e. 3.33ms, in its entirety from input to output.

Specifically, as shown in fig. 3, the video frame image transmission method further includes:

step S60: acquiring a target frame rate parameter; and setting the target frame rate parameters through an upper computer.

Step S70: and calculating the periodic buffer number required by the system clock according to the target frame rate parameter and a preset output frequency calculation strategy, and determining the data output frequency according to the periodic buffer number.

Step S80: and outputting the image data stored in the synchronous dynamic random access memory from a plurality of output network ports according to the data output frequency.

In the prior art, the frequency of the output of the image data is often multiplied, that is, the output frequency and the input frequency are in a multiple relation, so that the value variability of the output frequency is very small and can be determined only depending on the input frequency, for example, the input frequency of 60Hz is changed into the output frequency of 120Hz, so that the output frequency is changed by the scheme of the embodiment, and the video frame image with the output frequency desired by people is achieved. In the embodiment, the target frame rate parameter set in the upper computer software corresponds to the output frequency to be finally reached, so that the arbitrary variability of the data output frequency is realized, and different playing requirements are met. In step S70, it is equivalent to setting a timer, and calculating how many period buffer numbers are needed for the image at the target frame rate, for example, if the target frame rate is 120Hz, and the clock period used in the FPGA is 8ns, thenEqual to the number of periodic buffers. The image data stored in the synchronous dynamic random access memory is output from a plurality of output network ports according to the data output frequency by one frame.

The embodiment of the present invention further includes a sending card 100, as shown in fig. 4, the sending card 100 includes an input interface 101, an FPGA chip 102, a synchronous dynamic random access memory 103, and a plurality of output network ports 104, where:

the input interface 101 is connected with the FPGA chip 102 and used for acquiring data caching parameters and network port area setting parameters and acquiring video frame image data; setting data caching parameters and network port area setting parameters through an upper computer;

the FPGA chip 102 is connected with the input interface 101, the synchronous dynamic random access memory 103 and the output network port 104, and is used for selecting pre-cached image data from video frame image data according to a caching parameter and a preset data selection strategy, and setting data transmission areas of a plurality of output network ports according to a network port area setting parameter and a preset network port area setting strategy; the data volume of the pre-cached image data is less than one frame;

the synchronous dynamic random access memory 103 is connected with the FPGA chip 102 and is used for storing pre-cached image data;

and the output network ports 104 are connected with the FPGA chip 102 and used for outputting the image data.

The transmitting card 100 in this embodiment implements transmission of video frame images by the following steps, as shown in fig. 1:

step S10: and acquiring data cache parameters and network port area setting parameters.

The data caching parameters comprise pre-caching data volume and a caching area, the data volume of the pre-cached image data is 0.2 frame to 0.5 frame, and the network port area setting parameters comprise network port starting point coordinates and network port width and height.

Step S20: video frame image data is acquired.

Step S30: and selecting pre-cached image data from the video frame image data according to the caching parameters and a preset data selection strategy, and writing the pre-cached image data into the synchronous dynamic random access memory.

Step S40: and setting the data transmission area of the output network ports through the network port area setting parameters and a preset network port area setting strategy.

Step S50: and outputting the image data stored in the synchronous dynamic random access memory from a plurality of output network ports.

For implementing the above transmission method of the video frame image, the transmitting card 100 may refer to the description in the first embodiment of the present invention, and details are not described herein.

Specifically, as shown in fig. 2, the transmitting card 100 includes, when performing step S40:

step S401: and setting the area of the net openings of the output net openings into a vertical bar shape with the height larger than the width according to the coordinates of the starting point of the net openings and the width and the height of the net openings.

Step S402: combining the net port areas of each output net port in the row direction to form a total net port area; the serial number of the output network port is used as the column number in the total network port area.

The transmitting card 100 in this embodiment further implements transmission of video frame images through the following steps, as shown in fig. 3:

step S10: and acquiring data cache parameters and network port area setting parameters.

Step S20: video frame image data is acquired.

Step S30: and selecting pre-cached image data from the video frame image data according to the caching parameters and a preset data selection strategy, and writing the pre-cached image data into the synchronous dynamic random access memory.

Step S40: and setting the data transmission area of the output network ports through the network port area setting parameters and a preset network port area setting strategy.

Step S60: acquiring a target frame rate parameter; and setting the target frame rate parameters through an upper computer.

Step S70: and calculating the periodic buffer number required by the system clock according to the target frame rate parameter and a preset output frequency calculation strategy, and determining the data output frequency according to the periodic buffer number.

Step S80: and outputting the image data stored in the synchronous dynamic random access memory from a plurality of output network ports according to the data output frequency.

For implementing the above transmission method of the video frame image, the sending card 100 may refer to the description of the embodiment of the invention for the transmission method of the video frame image, and details are not repeated here.

Specifically, as shown in fig. 5, the input interface 101 in the embodiment of the present invention includes a parameter input interface 1011 and a data input interface 1012, where: and a parameter input interface 1011 connected to the FPGA chip 102 for obtaining data caching parameters and network port area setting parameters.

And a data input interface 1012 connected to the FPGA chip 102 for acquiring video frame image data. The transmitting card 100 can perform information interaction with a video processing device such as a server or a transmitter where the upper computer software is located through the data input interface 1032 to acquire video frame image data.

The embodiments of the present invention are not limited to the above product types, for example, the SDRAM may be one or more of SDRAM, DDR2, and DDR3, the parameter input interface may be a USB-B interface and/or an RJ11 interface, the data input interface may be one or more of a DVI interface, an HDMI interface, a DP interface, and a VGA interface, and the output network interface may be a gigabit network interface or a hundred megabyte network interface.

The embodiment of the present invention further includes a video frame image display system, as shown in fig. 6, including an upper computer 200, a sending card 100, a receiving card 300, and an LED display screen 400, wherein:

the upper computer 200 is in communication connection with the sending card 100, and data caching parameters, network port area setting parameters and a plurality of video frame image data are stored in the upper computer 200;

the sending card 100 is in communication connection with the upper computer 200 and the receiving card 300, and the sending card 100 is the sending card 100 in the previous embodiment;

the receiving card 300 is in communication connection with the sending card 100 and the LED display screen 400, and the receiving card 300 is used for receiving image data and dividing the image data into a plurality of video frame images;

and the LED display screen 400 is in communication connection with the receiving card 300, and the LED display screen 400 is used for displaying video frame images.

In this embodiment, specific product signals of the upper computer 200, the sending card 100, the receiving card 300, and the LED display screen 400 are not limited, and a person skilled in the art selects a product with an appropriate model, so long as the display of the video frame image is realized by the video frame image transmission method in the above embodiment, which all belong to the protection scope of the present invention.

According to the video frame image transmission method, the sending card and the video frame image display system, the pre-cached image data are selected from the video frame image data according to the caching parameters and the preset data selection strategy, and then the pre-cached image data are written into the synchronous dynamic random access memory, so that the image data with the pre-cached data amount smaller than one frame are buffered, compared with the prior art, the buffered data amount is changed, the data reading is faster than the data writing, the delay time of image data transmission is reduced, and the image display rate can be improved.

The present invention has been further described with reference to specific embodiments, but it should be understood that the detailed description should not be construed as limiting the spirit and scope of the present invention, and various modifications made to the above-described embodiments by those of ordinary skill in the art after reading this specification are within the scope of the present invention.

13页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:视频文件还原方法、装置、计算机设备和存储介质

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类