Display method, display device, terminal and storage medium
1. A display method is characterized by being applied to a rotary LED display screen provided with an LED plate, and the method comprises the following steps:
acquiring a video signal, and continuously caching the video signal on a random read-write memory chip;
determining pixel point position information of each LED lamp bead, which is associated with time, according to the rotating speed of the LED board and the position of each LED lamp bead on the LED board;
converting the pixel point position information of each LED lamp bead into a pixel point storage address corresponding to the video signal;
and periodically reading pixel point data corresponding to the pixel point storage address from the random read-write memory chip, and driving the LED board to display.
2. The method of claim 1, wherein the pixel point location information is determined based on the following formula:
Xn=rncos(ωt);
Yn=rnsin(ωt);
wherein, XnAnd YnThe two are pixel point coordinates of the nth LED lamp bead on the LED plate rotation plane; r isnThe distance between the nth LED lamp bead and the central point of the rotary LED display screen is obtained; ω is a rotational angular velocity of the LED board; t is the rotation time.
3. The method of claim 1, wherein the random access memory chip is an XRAM memory chip.
4. The method of claim 1 or 2, wherein said "buffering said video signal continuously on a random access memory chip" comprises:
and continuously caching the video signals on a random read-write storage chip according to the sequence of frames.
5. The method of claim 1, wherein the video signal buffered on the random access memory chip includes pixel row and column position information and pixel display information;
the step of converting the pixel point position information of each LED lamp bead into a pixel point storage address corresponding to the video signal includes:
and converting the pixel point position information of each LED lamp bead into the pixel point row and column position information, and setting the converted pixel point row and column position information as the pixel point storage address of each LED lamp bead.
6. The method according to claim 1 or 5, wherein said reading pixel data corresponding to the pixel storage address from the random access memory chip comprises:
and reading pixel point data corresponding to the pixel point storage address from the random read-write memory chip in a random mode.
7. A display device, characterized in that, be applied to the rotatory LED display screen that is provided with the LED board, display device includes:
the acquisition module is used for acquiring video signals and continuously caching the video signals on a random read-write memory chip;
the determining module is used for determining pixel point position information of each LED lamp bead, which is related to time, according to the rotating speed of the LED board and the position of each LED lamp bead on the LED board;
the conversion module is used for converting the pixel point position information of each LED lamp bead into a pixel point storage address corresponding to the video signal;
and the driving module is used for periodically reading pixel point data corresponding to the pixel point storage address from the random read-write storage chip and driving the pixel point data to the LED board for displaying.
8. The apparatus of claim 7, wherein the pixel point location information is determined based on the following formula:
Xn=rncos(ωt);
Yn=rnsin(ωt);
wherein, XnAnd YnThe two are pixel point coordinates of the nth LED lamp bead on the LED plate rotation plane; r isnThe distance between the nth LED lamp bead and the central point of the rotary LED display screen is obtained; ω is a rotational angular velocity of the LED board; t is the rotation time.
9. A display terminal comprising a processor and a memory, the processor performing the display method of any one of claims 1-6 when running an application in the memory.
10. A storage medium, characterized in that the storage medium stores therein a program that executes the display method according to any one of claims 1 to 6 when executed.
Background
Currently, a light-emitting diode (LED) display screen is widely used; the rotating LED display screen utilizes the characteristic of human visual persistence and utilizes a motor to drive the LED display panel to rotate so as to display a complete image on a circular plane; the technology spatially multiplexes the LED lamp beads of the display device, thereby greatly reducing the quantity of the LED lamp beads.
The method is characterized in that a large number of LED lamp beads are multiplexed on the rotary LED display screen, which means that data need to be refreshed when an LED lamp panel rotates at a certain angle, the refresh rate is greatly improved compared with that of the traditional LED display screen, and image data are no longer original line scanning data, but a DRAM (Dynamic Random Access Memory) for general storage is only suitable for line data reading and writing, and the Random address reading and writing efficiency is low, so in the existing scheme, the image data are transcoded in advance through upper computer software, the transcoded data are sent to a rotary LED display screen local machine, and the rotary LED display screen local machine displays images by adopting the transcoded data; however, the scheme involves data interaction with an upper computer, and high delay is brought, so that the conventional rotary LED display screen cannot decode in real time, the real-time performance is poor, the time of a video capable of being played is short, and the resolution is low.
Therefore, there is a need for a solution to the deficiencies of the prior art.
Disclosure of Invention
In view of the above, embodiments of the present invention provide a display method, an apparatus, a terminal and a storage medium to overcome the defects in the prior art.
Specifically, the embodiment of the present invention provides the following specific embodiments:
the embodiment of the invention provides a display method, which is applied to a rotary LED display screen provided with an LED plate, and comprises the following steps:
acquiring a video signal, and continuously caching the video signal on a random read-write memory chip;
determining pixel point position information of each LED lamp bead, which is associated with time, according to the rotating speed of the LED board and the position of each LED lamp bead on the LED board;
converting the pixel point position information of each LED lamp bead into a pixel point storage address corresponding to the video signal;
and periodically reading pixel point data corresponding to the pixel point storage address from the random read-write memory chip, and driving the pixel point data to the LED board for displaying.
In a specific embodiment, the pixel point position information is determined based on the following formula:
Xn=rncos(ωt);
Yn=rnsin(ωt);
wherein, XnAnd YnThe two are pixel point coordinates of the nth LED lamp bead on the LED plate rotation plane; r isnThe distance between the nth LED lamp bead and the central point of the rotary LED display screen is obtained; ω is a rotational angular velocity of the LED board; t is the rotation time.
In a specific embodiment, the random access memory chip is an XRAM memory chip.
In a specific embodiment, the "continuously buffering the video signal on a random access memory chip" includes:
and continuously caching the video signals on a random read-write storage chip according to the sequence of frames.
In a specific embodiment, the video signal includes pixel row and column position information and pixel display information;
the step of converting the pixel point position information of each LED lamp bead into a pixel point storage address corresponding to the video signal includes:
and converting the pixel point position information of each LED lamp bead into the pixel point row and column position information, and setting the converted pixel point row and column position information as the pixel point storage address of each LED lamp bead.
In a specific embodiment, the "periodically reading the pixel data corresponding to the pixel storage address from the random access memory chip" includes:
and periodically reading pixel point data corresponding to the pixel point storage address from the random read-write memory chip in a random mode.
The embodiment of the invention also provides a display device applied to a rotary LED display screen provided with an LED plate, and the display device comprises:
the acquisition module is used for acquiring video signals and continuously caching the video signals on a random read-write memory chip;
the determining module is used for determining pixel point position information of each LED lamp bead, which is related to time, according to the rotating speed of the LED board and the position of each LED lamp bead on the LED board; the rotary LED display screen is provided with the LED plate;
the conversion module is used for converting the pixel point position information of each LED lamp bead into a pixel point storage address corresponding to the video signal;
and the driving module is used for periodically reading pixel point data corresponding to the pixel point storage address from the random read-write storage chip and driving the pixel point data to the LED board for displaying.
In a specific embodiment, the pixel point position information is determined based on the following formula:
Xn=rncos(ωt);
Yn=rnsin(ωt);
wherein, XnAnd YnThe two are pixel point coordinates of the nth LED lamp bead on the LED plate rotation plane; r isnThe distance between the nth LED lamp bead and the central point of the rotary LED display screen is obtained; ω is a rotational angular velocity of the LED board; t is the rotation time.
The embodiment of the invention also provides a terminal which comprises a processor and a memory, wherein the processor executes the display method when running the application program in the memory.
The embodiment of the invention also provides a storage medium, wherein the storage medium stores a program, and the program executes the display method when being executed.
Therefore, the embodiment of the invention provides a display method, a display device, a terminal and a storage medium, which are applied to a rotary LED display screen provided with an LED plate; the method comprises the following steps: acquiring a video signal, and continuously caching the video signal on a random read-write memory chip; determining pixel point position information of each LED lamp bead, which is associated with time, according to the rotating speed of the LED board and the position of each LED lamp bead on the LED board; converting the pixel point position information of each LED lamp bead into a pixel point storage address corresponding to the video signal; and periodically reading pixel point data corresponding to the pixel point storage address from the random read-write memory chip, and driving the pixel point data to the LED board for displaying. According to the scheme, video signals are continuously cached on the random read-write storage chip, pixel point position information related to time of each LED lamp bead is determined, the pixel point position information is converted into pixel point storage addresses corresponding to the video signals, and corresponding pixel point data are read from the cache periodically based on the determined pixel point storage addresses.
Drawings
In order to more clearly illustrate the technical solution of the present invention, the drawings required to be used in the embodiments will be briefly described below, and it should be understood that the following drawings only illustrate some embodiments of the present invention, and therefore should not be considered as limiting the scope of the present invention. Like components are numbered similarly in the various figures.
Fig. 1 is a schematic flow chart illustrating a display method according to an embodiment of the present invention;
FIG. 2 is a schematic diagram illustrating the rotation of a rotating LED display screen according to an embodiment of the present invention;
fig. 3 is a system diagram illustrating a display method according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a display device according to an embodiment of the present invention.
Illustration of the drawings:
201-an acquisition module; 202-a determination module; 203-a conversion module; 204-drive module.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of 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.
The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present invention without making any creative effort, shall fall within the protection scope of the present invention.
Hereinafter, the terms "including", "having", and their derivatives, which may be used in various embodiments of the present invention, are only intended to indicate specific features, numbers, steps, operations, elements, components, or combinations of the foregoing, and should not be construed as first excluding the existence of, or adding to, one or more other features, numbers, steps, operations, elements, components, or combinations of the foregoing.
Furthermore, the terms "first," "second," "third," and the like are used solely to distinguish one from another and are not to be construed as indicating or implying relative importance.
Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which various embodiments of the present invention belong. The terms (such as those defined in commonly used dictionaries) should be interpreted as having a meaning that is consistent with their contextual meaning in the relevant art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein in various embodiments of the present invention.
Example 1
As shown in fig. 1, a display method proposed for embodiment 1 of the present invention is applied to a rotary LED display screen provided with an LED panel, and includes the following steps:
s101, acquiring a video signal, and continuously caching the video signal on a random read-write memory chip;
s102, determining pixel point position information of each LED lamp bead, which is related to time, according to the rotating speed of the LED board and the position of each LED lamp bead on the LED board;
step S103, converting the pixel point position information of each LED lamp bead into a pixel point storage address corresponding to the video signal;
and step S104, periodically reading pixel point data corresponding to the pixel point storage address from the random read-write storage chip, and driving the pixel point data to the LED board for displaying.
Specifically, the random access memory chip is an XRAM (on-chip extended RAM) memory chip. The XRAM memory chip has the advantages of large cache capacity, high random bandwidth, no need of refreshing data, simple operation, pipelining operation, high reliability and cost performance, and the like. Because the XRAM high-speed large-capacity random access memory has the advantages, the programmable logic device can be conveniently and freely switched between the writing and the reading of the cache, the operation efficiency is high, and the high random bandwidth can be conveniently used for continuously reading pixel point information from the approximate random storage address in a pipeline mode after trigonometric function matrix conversion and driving the pixel point information to the LED lamp panel.
As shown in fig. 2, a schematic diagram of the rotation of the rotating LED display screen is shown, taking a piece of LED board as an example, the LED board rotates to the right by a certain extent, and the central line of the LED board is provided with LED beads. Rotating the LED board enables the display of a circular plane.
Specifically, as shown in fig. 3, the system architecture diagram of the present solution is composed of a programmable logic device (i.e., the execution main body of the present solution), an XRAM high-speed random access memory, an HDMI receiver, a power module, an HDMI interface, an LED lamp panel interface, and a power supply.
The voltage conversion is carried out by a power supply and the power is supplied to the programmable logic device, the XRAM high-speed random read-write memory and the HDMI receiver. The video signal of the external video signal source is transmitted to the HDMI receiver via an HDMI (High Definition Multimedia Interface) Interface. The HDMI receiver receives a high-definition multimedia HDMI input signal and converts the HDMI input signal into a parallel video output signal to the programmable logic device. The programmable logic device continuously buffers the video signal into the high-speed random access memory according to the frame data. And the programmable logic device acquires pixel point signals from the cache through real-time matrix transformation according to the motor rotating speed and the position of the LED lamp panel, drives the pixel point signals to the LED lamp panel through an LED lamp panel interface and forms an image.
The programmable logic device receives a video stream signal from a video signal source through an HDMI receiver, caches the video stream signal on an XRAM high-speed random read-write storage chip through an Input/Output (Input/Output) interface, and calculates pixel point position information to be driven to an LED display panel by using trigonometric function matrix transformation according to the motor rotating speed and the position information of each LED lamp bead, and then converts the pixel point position information into pixel point storage addresses corresponding to the video stream signal (namely, an incidence relation is established between the LED lamp beads and the pixel points in the video stream signal, so that the addresses of the pixel points to be displayed, which pixel points are correspondingly displayed when the LED lamp beads need to display the video stream signal, and the pixel point storage addresses of the pixel points to be displayed are obtained). The pixel point data is continuously read out from the XRAM high-speed random read-write storage chip through a pipeline structure and is driven to the LED lamp panel to form an image.
Specifically, the pixel position information is determined based on the following formula:
Xn=rncos(ωt);
Yn=rnsin(ωt);
wherein, XnAnd YnThe two are pixel point coordinates of the nth LED lamp bead on the LED plate rotation plane; r isnThe distance between the nth LED lamp bead and the central point of the rotary LED display screen is obtained; ω is a rotational angular velocity of the LED board; t is the rotation time.
In a specific embodiment, the "continuously buffering the video signal on a random access memory chip" includes:
and continuously caching the video signals on a random read-write storage chip according to the sequence of frames.
Specifically, the video signals are buffered continuously in a frame-by-frame manner in the time angle, so that the buffered video signals can be analyzed in time and driven to display, and the video signals of the next frame are processed universally continuously, thereby improving the real-time performance.
Specifically, the video signal cached on the random read-write memory chip comprises row and column position information of pixel points and display information of the pixel points; the row and column position information of the pixels is the position of each pixel in the row and column, and the pixel display information is RGB data, namely specific data for displaying the color.
The step of converting the pixel point position information of each LED lamp bead into a pixel point storage address corresponding to the video signal includes:
and converting the pixel point position information of each LED lamp bead into the pixel point row and column position information, and setting the converted pixel point row and column position information as the pixel point storage address of each LED lamp bead.
Specifically, in the above steps, the pixel point position information represents the positions of the LED lamp beads at different time points, and the positions are converted into a line and row manner, so that the pixel points of the LED lamp beads that need to be displayed at different times are determined.
In a specific embodiment, in order to obtain pixel point data more quickly and perform display, the "periodically reading pixel point data corresponding to the pixel point storage address from the random access memory chip" includes:
and periodically reading pixel point data corresponding to the pixel point storage address from the random read-write memory chip in a random mode. Specifically, the pixel point data corresponding to the pixel point storage address is simultaneously obtained in a random mode. And periodically reading the pixel data corresponding to the pixel storage address from the random read-write storage chip in a random mode, wherein the random mode reading data is determined by the particularity of the rotating LED display screen. Compared with the traditional LED display screen, the display device of the rotary LED display screen is rotating rather than static, so that the display data can not use the line scanning mode used by the traditional LED display screen, namely, the mode of reading the line data from the storage chip by the traditional LED display screen is not suitable for the rotary LED display screen. Rotating the LED display screen requires periodically reading a piece of data in the circumferential diameter direction in the memory buffer image data, and continuously changing with the rotation of the display LED panel until one complete refresh is completed by rotating 360 degrees. The reading mode is approximately equal to random reading, and the reading mode is greatly different from the regular reading of the row reading or the column reading of the traditional LED display screen, and a high XRAM random writing and reading bandwidth is required. Therefore, the pixel point data is read by adopting a random method instead of a line-by-line or line-by-line mode, the required multiple pixel point data can be obtained simultaneously, and the real-time performance of display is better realized. Therefore, the pixel point data is read by adopting a random method instead of a line-by-line mode, the required multiple pixel point data can be obtained simultaneously, and the real-time performance of display is better realized.
Example 2
As shown in fig. 4, embodiment 2 of the present invention provides a display device applied to a rotary LED display screen provided with an LED panel, the display device including:
an obtaining module 201, configured to obtain a video signal, and continuously buffer the video signal on a random access memory chip;
the determining module 202 is configured to determine, according to the rotation speed of the LED board and the position of each LED bead on the LED board, pixel point position information of each LED bead, which is associated with time;
a conversion module 203, configured to convert the pixel point position information of each LED lamp bead into a pixel point storage address corresponding to the video signal;
and the driving module 204 is configured to periodically read pixel point data corresponding to the pixel point storage address from the random access memory chip, and drive the pixel point data to the LED board for display.
In a specific embodiment, the pixel point position information is determined based on the following formula:
Xn=rncos(ωt);
Yn=rnsin(ωt);
wherein, XnAnd YnThe two are pixel point coordinates of the nth LED lamp bead on the LED plate rotation plane; r isnThe distance between the nth LED lamp bead and the central point of the rotary LED display screen is obtained; ω is a rotational angular velocity of the LED board; t is the rotation time.
In a specific embodiment, the random access memory chip is an XRAM memory chip.
In a specific embodiment, the obtaining module 201 continuously buffers the video signal on a random access memory chip, including:
and continuously caching the video signals on a random read-write storage chip according to the sequence of frames.
In a specific embodiment, the video signal buffered on the random access memory chip comprises row and column position information of pixel points and display information of pixel points;
the conversion module 203 is configured to:
and converting the pixel point position information of each LED lamp bead into the pixel point row and column position information, and setting the converted pixel point row and column position information as the pixel point storage address of each LED lamp bead.
In a specific embodiment, the "periodically reading the pixel data corresponding to the pixel storage address from the random access memory chip" includes:
and periodically reading pixel point data corresponding to the pixel point storage address from the random read-write memory chip in a random mode.
Example 2
The embodiment 3 of the present invention further discloses a terminal, which includes a processor and a memory, wherein the processor executes the display method described in the embodiment 1 when running the application program in the memory.
Example 2
Embodiment 4 of the present invention also discloses a storage medium, in which a program is stored, and the display method described in embodiment 1 is executed when the program is executed.
Therefore, the embodiment of the invention provides a display method, a display device, a terminal and a storage medium, wherein the method comprises the following steps: acquiring a video signal, and continuously caching the video signal on a random read-write memory chip; determining pixel point position information of each LED lamp bead, which is associated with time, according to the rotating speed of the LED board and the position of each LED lamp bead on the LED board; converting the pixel point position information of each LED lamp bead into a pixel point storage address corresponding to the video signal; and periodically reading pixel point data corresponding to the pixel point storage address from the random read-write memory chip, and driving the pixel point data to the LED board for displaying. According to the scheme, video signals are continuously cached on the random read-write storage chip, pixel point position information related to time of each LED lamp bead is determined, the pixel point position information is converted into pixel point storage addresses corresponding to the video signals, and corresponding pixel point data are read from the cache periodically based on the determined pixel point storage addresses.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method can be implemented in other ways. The apparatus embodiments described above are merely illustrative and, for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, each functional module or unit in each embodiment of the present invention may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention or a part of the technical solution that contributes to the prior art in essence can be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a smart phone, a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention.
- 上一篇:石墨接头机器人自动装卡簧、装栓机
- 下一篇:数据驱动器和具有该数据驱动器的显示装置