Disclosure of Invention
In view of the above-mentioned deficiencies of the prior art, an object of the present invention is to provide a fan screen display method and system based on SOC-FPGA, which convert video data to be displayed from a planar coordinate system to data of a polar coordinate system through an SOC chip and an FPGA chip, thereby realizing real-time decoding and real-time playing of the video data.
The technical scheme of the invention is as follows:
a fan screen display method based on SOC-FPGA comprises the following steps:
the SOC chip decodes video data to be displayed and then sends the decoded video data to the FPGA chip at the refresh rate of N frames;
the FPGA chip writes in data of odd frames and stores the data in the SRAM module, the data of the next odd frame covers the data of the previous odd frame, the data written in the even frame is abandoned, and the LED lamp bar is driven and refreshed in the time period of abandoning the writing in of the even frame, and the LED lamp bar rotates each time
The FPGA chip drives and refreshes the LED light bar once;
assuming that the distance between a lamp bead on the LED lamp strip and a rotation center is R, the polar coordinates X = RcosA and Y = RsinA, the FPGA chip acquires all X and Y coordinate values and data in the SRAM module, and finally drives the LED lamp strip to display a video to be displayed, wherein A is the rotation angle of the LED lamp strip.
Preferably, after the SOC chip decodes the video data to be displayed, before the SOC chip sends the video data to the FPGA chip at a refresh rate of N frames, the method further includes:
when the LED light bar rotates for one circle, the SOC chip calculates the size of sinA and cosA of the LED light bar rotating to each position, and the total calculation is carried out
And secondly, after the FPGA chip is started, the SOC chip sends the calculated sizes of all sinA and cosA to the FPGA chip.
Preferably, the SOC chip sends to the FPGA chip at a refresh rate of 60 frames.
Preferably, the LED light bar rotates once
And driving and refreshing the LED lamp strip once by the FPGA chip.
Preferably, the SOC chip receives video data to be displayed through the WIFI module.
The invention also provides a fan screen display system based on the SOC-FPGA, which comprises the following components:
the SOC chip is used for decoding video data to be displayed and then sending the video data to the FPGA chip at the refresh rate of N frames;
the FPGA chip is used for writing in data of odd frames and storing the data in the SRAM module, the data of the next odd frame covers the data of the previous odd frame, the data written in the even frame is abandoned, and the LED lamp bar is driven and refreshed in the time period of abandoning the writing in of the even frame, and the LED lamp bar rotates every time
The FPGA chip drives and refreshes the LED light bar once, and the lamp beads and the rotating center on the LED light bar are assumedThe distance of the LED lamp strip is R, the polar coordinates X = RcosA, and Y = RsinA, the FPGA chip acquires all X and Y coordinate values and data in the SRAM module, wherein A is the rotating angle of the LED lamp strip;
and the LED light bar is used for rotationally displaying the video to be displayed according to all the coordinate values of X and Y acquired by the FPGA chip and the data in the SRAM module.
Preferably, the SOC-FPGA-based fan screen display system further includes:
the calculation sending module is connected with the SOC chip, and when the LED light bar rotates for one circle, the calculation sending module is used for calculating the sizes of sinA and cosA of the LED light bar rotating to each position, and the total calculation is carried out
And secondly, sending the calculated sizes of all sinA and cosA to the FPGA chip after the FPGA chip is started.
Preferably, the SOC chip sends to the FPGA chip at a refresh rate of 60 frames.
Preferably, the LED light bar rotates once
And driving and refreshing the LED lamp strip once by the FPGA chip.
Preferably, the SOC chip receives video data to be displayed through the WIFI module.
Compared with the prior art, the embodiment of the application mainly has the following beneficial effects:
according to the SOC-FPGA-based fan screen display method and system, the planar coordinate is converted into the polar coordinate through the FPGA chip, data of the polar coordinate are read, and the LED lamp bar is driven to display, so that the effect of displaying videos in real time is achieved.
Detailed Description
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs; the terminology used in the description of the application herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application; the terms "including" and "having," and any variations thereof, in the description and claims of this application and the description of the above figures are intended to cover non-exclusive inclusions. The terms "first," "second," and the like in the description and claims of this application or in the above-described drawings are used for distinguishing between different objects and not for describing a particular order.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
As shown in fig. 1, a fan screen display method based on SOC-FPGA according to a preferred embodiment of the present invention includes the following steps:
s100, after decoding video data to be displayed, the SOC chip sends the video data to the FPGA chip at the refresh rate of N frames;
s200, writing data of odd frames into the FPGA chip, storing the data in an SRAM module, and thenThe data of an odd frame covers the data of the previous odd frame, the data written into the even frame is abandoned, and the LED lamp bar is driven and refreshed in the time period of abandoning the writing into the even frame, and each time the LED lamp bar rotates
The FPGA chip drives and refreshes the LED light bar once;
300. assuming that the distance between a lamp bead on the LED lamp strip and a rotation center is R, the polar coordinates X = RcosA and Y = RsinA, the FPGA chip acquires all X and Y coordinate values and data in the SRAM module, and finally drives the LED lamp strip to display a video to be displayed, wherein A is the rotation angle of the LED lamp strip.
As shown in fig. 2, after the S100 and the SOC chip decode the video data to be displayed, before the SOC chip sends the video data to the FPGA chip at the refresh rate of N frames, the method further includes:
s400, when the LED light bar rotates for one circle, the SOC chip calculates the size of sinA and cosA of the LED light bar rotating to each position, and the total calculation is carried out
And secondly, after the FPGA chip is started, the SOC chip sends the calculated sizes of all sinA and cosA to the FPGA chip.
After the SOC chip is communicated with the FPGA chip, the external SRAM module stores one frame of video data, the SOC chip sends the frame of video data to the FPGA chip at a refresh rate of 60 frames, the FPGA chip writes one frame of data, the second frame gives up writing the data and then drives to refresh the LED light bar, the third frame of data is written to cover the first frame of data, the fourth frame of data gives up and then drives to refresh the LED light bar, the time space changing effect is achieved, and 24 frames of LED display is sequentially driven.
Assuming that the FPGA chip completes driving every 0.2 degree, the accumulated driving times is 360/0.2=1800 times, the radius of the polar coordinate is R, the polar coordinate X = RcosA, and Y = RsinA, and then the FPGA chip reads data in the SRAM module through the acquired X and Y coordinates, and finally drives the LED light bar to display.
As the FPGA chip can not obtain the numerical values of cosA and sinA, the SOC chip calculates 1800 (360/0.2) sinA and cosA data, the SOC chip starts the system and sends the data to the FPGA chip, the FPGA chip stores the data to the internal SRAM module, and the X and Y coordinates are calculated by continuously checking the table, so that the frame buffer data stored by the external SRAM is obtained, and the LED lamp bar is driven to display. Of course, the SOC chip may be other main control chips, such as an MCU chip.
In specific implementation, the WIFI module is used for transmitting video data to be displayed.
According to the invention, the SOC chip and the FPGA chip are used for converting the video plane coordinate data into the polar coordinate data of the fan screen device, so that real-time decoding and real-time playing of the video can be realized, and meanwhile, the speed of the upper computer for transmitting data through WIFI is increased.
As shown in fig. 3, the present invention further provides a fan screen display system based on SOC-FPGA, which includes:
the SOC chip is used for decoding video data to be displayed and then sending the video data to the FPGA chip at the refresh rate of N frames;
the FPGA chip is used for writing in data of odd frames and storing the data in the SRAM module, the data of the next odd frame covers the data of the previous odd frame, the data written in the even frame is abandoned, and the LED lamp bar is driven and refreshed in the time period of abandoning the writing in of the even frame, and the LED lamp bar rotates every time
The FPGA chip drives and refreshes the LED light bar once, assuming that the distance between a lamp bead on the LED light bar and a rotation center is R, the polar coordinates are X = RcosA and Y = RsinA, and the FPGA chip acquires coordinate values of all X and Y and data in the SRAM module, wherein A is the rotation angle of the LED light bar;
and the LED light bar is used for rotationally displaying the video to be displayed according to all the coordinate values of X and Y acquired by the FPGA chip and the data in the SRAM module.
In a further preferred embodiment of the present invention, the SOC-FPGA-based fan screen display system further includes:
the calculation sending module is connected with the SOC chip and used as an LED lampWhen the strip rotates for one circle, the calculation and sending module is used for calculating the sizes of sinA and cosA of the LED light bar rotating to various positions, and the total calculation is carried out
And secondly, sending the calculated sizes of all sinA and cosA to the FPGA chip after the FPGA chip is started.
In specific implementation, the SOC chip sends the refresh rate of 60 frames to the FPGA chip, and each time the LED light bar rotates, the LED light bar is sent to the FPGA chip
And driving and refreshing the LED lamp strip once by the FPGA chip.
In specific implementation, the SOC receives video data to be displayed through the WIFI module.
The method can be applied to naked eye 3D advertisement putting, naked eye 3D video live broadcasting, naked eye 3D holographic displays and multi-display equipment splicing of fan screens based on an FPGA (field programmable gate array) planar coordinate conversion polar coordinate algorithm.
In summary, the fan screen display method and system based on SOC-FPGA provided by the present invention includes the following steps: the SOC chip decodes video data to be displayed and then sends the decoded video data to the FPGA chip at the refresh rate of N frames; the FPGA chip writes in data of odd frames and stores the data in the SRAM module, the data of the next odd frame covers the data of the previous odd frame, the data written in the even frame is abandoned, and the LED lamp bar is driven and refreshed in the time period of abandoning the writing in of the even frame, and the LED lamp bar rotates each time
![Figure 338006DEST_PATH_IMAGE001](https://patentimages.storage.googleapis.com/10/cd/4b/8c0f7b306a3e21/338006DEST_PATH_IMAGE001.png)
The FPGA chip drives and refreshes the LED light bar once; assuming that the distance between a lamp bead on the LED lamp strip and a rotation center is R, the polar coordinates X = RcosA and Y = RsinA, the FPGA chip acquires all X and Y coordinate values and data in the SRAM module, and finally drives the LED lamp strip to display a video to be displayed, wherein A is the rotation angle of the LED lamp strip, so that the planar coordinate is converted into the polar coordinate through the FPGA chip, and then the polar coordinate data is read and the video is driven to be displayedAnd the LED lamp strip is moved to display, so that the effect of real-time video display is achieved.
It is to be understood that the above-described embodiments are merely illustrative of some, but not restrictive, of the broad invention, and that the appended drawings illustrate preferred embodiments of the invention and do not limit the scope of the invention. This application is capable of embodiments in many different forms and is provided for the purpose of enabling a thorough understanding of the disclosure of the application. Although the present application has been described in detail with reference to the foregoing embodiments, it will be apparent to one skilled in the art that the present application may be practiced without modification or with equivalents of some of the features described in the foregoing embodiments. All equivalent structures made by using the contents of the specification and the drawings of the present application are directly or indirectly applied to other related technical fields and are within the protection scope of the present application.