Virtual LED roaming method and device, distributed decoder and storage medium
By updating the backup memory in the distributed decoder and synchronously sending it to the display, the problem of display asynchrony during virtual LED roaming is solved, achieving efficient display synchronization and cost control.
Patent Information
- Application Number
- CN202410538272.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-30
- Publication Date
- 2025-10-31
AI Technical Summary
In existing technologies, virtual LED roaming suffers from display asynchrony due to device inconsistency and CPU rendering discrepancies, which affects display quality and increases costs.
A distributed decoder is used. By obtaining the backup memory and roaming information of the decoder, the target virtual LED in the backup memory is updated and displayed synchronously before the updated backup memory is sent to the display, thus avoiding direct operation of the display memory and achieving display synchronization.
It improves the display synchronization and efficiency of virtual LED roaming, avoids incomplete images when switching states in the middle of the display, and avoids increasing roaming costs.
Smart Images

Figure CN120877682A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of visual display technology, and in particular to a virtual LED roaming method, apparatus, distributed decoder, and storage medium. Background Technology
[0002] Virtual LEDs are lines of text or several rows of text with backgrounds superimposed on the screen. When virtual LEDs (Light-Emitting Diodes) are roamed under the decoder, the screen is sent to the display along with the virtual LEDs. Due to asynchronous roaming operations of the virtual LEDs by different devices and / or asynchronous rendering by the CPUs (Central Processing Units) within the decoder, the virtual LEDs are displayed in an intermediate state on the screen. That is, the display of the virtual LEDs on the screen is incomplete, causing the virtual LEDs to be displayed asynchronously on the screen, resulting in poor display quality.
[0003] In existing technologies, high-performance DSP (Digital Signal Processing) chips are generally used to process data through multiple threads to ensure the rendering time during virtual LED roaming, so as to achieve display synchronization.
[0004] However, using high-performance DSP chips for virtual LED roaming introduces new problems. For example, high-performance DSP chips are expensive, their performance is limited by the number of devices available for multi-threaded processing, and they can negatively impact image processing quality. Therefore, effectively resolving display asynchrony during virtual LED roaming is a pressing issue that needs to be addressed. Summary of the Invention
[0005] This invention provides a virtual LED roaming method, device, distributed decoder, and storage medium to solve the defects of display asynchrony during virtual LED roaming in the prior art, achieve display synchronization during virtual LED roaming, improve roaming efficiency, and avoid increasing roaming costs.
[0006] This invention provides a virtual LED roaming method applied to a distributed decoder, wherein the distributed decoder includes at least two first decoders, the first decoders being either a master decoder or a slave decoder, and the method includes:
[0007] For each of the first decoders, obtain the backup memory and roaming information corresponding to the first decoder; based on the roaming information, update the target virtual LED in the backup memory to obtain the updated backup memory; switch the display memory corresponding to the first decoder to the updated backup memory;
[0008] The updated backup memory corresponding to each of the first decoders is synchronized and sent to the display to perform roaming of the target virtual LED.
[0009] According to the virtual LED roaming method provided by the present invention, obtaining the backup memory corresponding to the first decoder includes:
[0010] If the first decoder is roaming for the first time, obtain the backup memory that is in an idle state corresponding to the first decoder;
[0011] If the first decoder is not roaming for the first time, the first display memory corresponding to the previous roaming of the first decoder is obtained; based on the roaming information corresponding to the previous roaming, the pixel data of the target virtual LED corresponding to the previous roaming is updated in the first display memory to obtain the backup memory corresponding to the first decoder.
[0012] According to the virtual LED roaming method provided by the present invention, the roaming information includes the target roaming type corresponding to the target virtual LED;
[0013] Before switching the display memory corresponding to the first decoder to the updated backup memory, the method further includes:
[0014] When the target roaming type is cross-device roaming and the first decoder is the master decoder, the system receives confirmation information corresponding to each of the slave decoders. The confirmation information is used to indicate that the backup memory update corresponding to each slave decoder is complete. When a pulse signal is detected, the system sends multicast information to each slave decoder. The multicast information is used to instruct each slave decoder to switch the display memory to the updated backup memory.
[0015] When the target roaming type is cross-device roaming and the first decoder is a slave decoder, an acknowledgment message is sent to the master decoder, the acknowledgment message indicating that the backup memory corresponding to the slave decoder has been updated; multicast information sent by the master decoder is received, the multicast information instructing the slave decoder to switch the display memory to the updated backup memory.
[0016] According to the virtual LED roaming method provided by the present invention, the roaming information further includes the target location and operation data corresponding to the target virtual LED;
[0017] The step of updating the target virtual LED in the backup memory based on the roaming information to obtain the updated backup memory includes:
[0018] When the target roaming type is cross-device roaming, the character data corresponding to the data to be operated is determined from the character library; based on the target location, the target virtual LED corresponding to the character data is determined; the pixel value corresponding to the target virtual LED is adjusted in the backup memory to obtain the updated backup memory;
[0019] When the target roaming type is single-device roaming, the target virtual LED is determined based on the data to be operated; the target virtual LED is adjusted to the target position in the backup memory to obtain the updated backup memory.
[0020] According to the virtual LED roaming method provided by the present invention, the roaming information further includes the target operation type;
[0021] The step of adjusting the pixel value corresponding to the target virtual LED in the backup memory to obtain the updated backup memory includes:
[0022] When the target operation type is a deletion operation, the pixel value corresponding to the target virtual LED is adjusted to a transparent color to obtain the updated backup memory;
[0023] And / or,
[0024] When the target operation type is a rendering operation, the pixel value corresponding to the target virtual LED is rendered as a preset color to obtain the updated backup memory.
[0025] The virtual LED roaming method provided by the present invention further includes:
[0026] When the target operation type is a one-click clear operation, obtain the transparent memory corresponding to the first decoder;
[0027] Switch the display memory corresponding to the first decoder to the transparent memory to clear all virtual LEDs corresponding to the first decoder.
[0028] According to the virtual LED roaming method provided by the present invention, obtaining roaming information corresponding to the first decoder includes:
[0029] When the first decoder is the main decoder, it responds to the user's relevant operations and obtains the operation information sent by the client; based on the operation information, it determines the roaming information corresponding to the main decoder.
[0030] When the first decoder is a slave decoder, the roaming information corresponding to the slave decoder sent by the master decoder is received.
[0031] The present invention also provides a virtual LED roaming device applied to a distributed decoder, wherein the distributed decoder includes at least two first decoders, the first decoders being a master decoder or a slave decoder, and the device includes:
[0032] The switching module is used to obtain the backup memory and roaming information corresponding to each of the first decoders; update the target virtual LED in the backup memory based on the roaming information to obtain the updated backup memory; and switch the display memory corresponding to the first decoder to the updated backup memory.
[0033] The synchronous display module is used to synchronously display the updated backup memory corresponding to each of the first decoders in order to roam the target virtual LED.
[0034] The present invention also provides a distributed decoder, including a master decoder, at least one slave decoder and a switch, wherein the master decoder and the at least one slave decoder are communicatively connected to the switch, and the master decoder and the at least one slave decoder are both used to execute the virtual LED roaming method as described in any of the preceding claims.
[0035] The present invention also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the virtual LED roaming method as described above.
[0036] The virtual LED roaming method, apparatus, distributed decoder, and storage medium provided by this invention, after obtaining the backup memory and roaming information corresponding to the first decoder, first update the target virtual LED in the backup memory according to the roaming information to obtain the updated backup memory. After switching the display memory to the updated backup memory, the updated backup memory corresponding to each of the first decoders is synchronously displayed to realize the roaming of the target virtual LED. During the entire roaming process, the screen corresponding to the display memory is synchronously displayed before the updated backup memory is displayed, and the screen of the updated backup memory is synchronously displayed after the updated backup memory is displayed. This avoids direct data operation on the display memory, which would cause the first decoder to display an incomplete screen during the intermediate switching state. This improves the display effect while avoiding an increase in roaming costs. Attached Figure Description
[0037] To more clearly illustrate the technical solutions in this invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.
[0038] Figure 1This is one of the schematic diagrams illustrating the effect of the virtual LED roaming method provided by existing technology;
[0039] Figure 2 This is the second illustration of the effect of the virtual LED roaming method provided by existing technology;
[0040] Figure 3 This is a flowchart illustrating the virtual LED roaming method provided in an embodiment of the present invention;
[0041] Figure 4 This is a schematic diagram illustrating the effect of cross-device roaming provided in an embodiment of the present invention;
[0042] Figure 5 This is a schematic diagram illustrating the effect of single-device roaming provided in an embodiment of the present invention;
[0043] Figure 6 This is a schematic diagram illustrating the effect of the one-click clearing operation provided in an embodiment of the present invention;
[0044] Figure 7 This is a schematic diagram of the structure of the virtual LED roaming device provided in an embodiment of the present invention;
[0045] Figure 8 This is a schematic diagram of the structure of the distributed decoder provided in an embodiment of the present invention;
[0046] Figure 9 This is a schematic diagram of the structure of the first decoder provided in an embodiment of the present invention. Detailed Implementation
[0047] To make the objectives, technical solutions, and advantages of this invention clearer, the technical solutions of this invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this invention. All other embodiments obtained by those skilled in the art based on the embodiments of this invention without creative effort are within the scope of protection of this invention.
[0048] Virtual LEDs (Light-Emitting Diodes) may experience display desynchronization issues during roaming, primarily due to the following two reasons:
[0049] 1) The image is sent for display along with the virtual LED. If the virtual LED is modified or cleared at this time, it will take effect immediately on the display screen. However, the roaming operations of the virtual LED by different devices are not synchronized, resulting in the display screen showing an incomplete image in an intermediate state. For example, if the virtual LED needs to roam from the interface corresponding to the master device and slave device 1 to the interface corresponding to slave device 2 and slave device 3 during roaming... Figure 1This is one of the schematic diagrams illustrating the effect of existing virtual LED roaming methods, such as... Figure 1 As shown, the virtual LED displays the message "Welcome all leaders for your guidance." Before roaming, this virtual LED is displayed on the interfaces corresponding to the master device and slave device 1. During roaming, due to asynchronous roaming operations on each device, the "Welcome all leaders" message displayed on the master device has roamed to slave device 2, but slave devices 1 and 3 have not yet performed roaming operations. That is, the "Leaders for your guidance" message displayed on slave device 1 has not yet roamed to slave device 3, resulting in the display showing... Figure 1 The display effect is shown on the right. For example, Figure 2 This is the second illustration of the effect of the virtual LED roaming method provided by existing technology, such as... Figure 2 As shown, during roaming, the master device, slave device 2, and slave device 3 have performed roaming operations. That is, the "Welcome, Leaders" displayed on the master device has roamed to slave device 2, and slave device 3 has displayed "Guidelines have arrived to provide guidance." However, slave device 1 has not yet performed a roaming operation; that is, slave device 1 still displays "Guidelines have arrived to provide guidance," causing the display screen to show... Figure 2 The display effect is shown on the right.
[0050] 2) The decoder contains multiple CPUs (Central Processing Units). For the same complete virtual LED, the rendering time of each CPU is different, which makes the display windows display at different times, resulting in the virtual LED display being out of sync.
[0051] To address the aforementioned problems in the prior art, embodiments of the present invention provide a virtual LED roaming method applied to a distributed decoder, wherein the distributed decoder includes at least two first decoders, and the first decoders are either master decoders or slave decoders. Figure 3 This is a flowchart illustrating the virtual LED roaming method provided in an embodiment of the present invention, as shown below. Figure 3 As shown, the method includes:
[0052] Step 310: Obtain the backup memory and roaming information corresponding to the first decoder; based on the roaming information, update the target virtual LED in the backup memory to obtain the updated backup memory; switch the display memory corresponding to the first decoder to the updated backup memory.
[0053] Specifically, after acquiring roaming information, the target virtual LED can be determined in the backup memory based on this information, and data operations can be performed on the target virtual LED to obtain the updated backup memory. Since the updated backup memory has not yet been sent to the display, the VO (Video Output) module still displays the image before roaming. After the first decoder updates the backup memory, the display memory to be sent to the display can be switched to the updated memory. By updating the backup memory instead of directly manipulating the display memory, the problem of display asynchrony caused by asynchronous roaming operations of different devices or inconsistent CPU rendering times can be avoided, thus preventing incomplete display images.
[0054] It should be noted that the backup memory can be understood as the memory area within the first decoder. This backup memory includes the image to be displayed and the virtual LEDs on that image. The size of the data space corresponding to this backup memory depends on the image resolution of the display window corresponding to the first decoder in the VO module. The roaming information can be understood as the information that the user wants to operate on the target virtual LEDs.
[0055] It should be noted that the virtual LED roaming method provided in this embodiment of the invention is applied to the first decoder corresponding to the distributed decoder. The first decoder is either a master decoder or a slave decoder. That is, both the master decoder and the slave decoder in the distributed decoder execute the virtual LED roaming method.
[0056] Further, the roaming information corresponding to the first decoder is obtained, including:
[0057] When the first decoder is the main decoder, it responds to the user's relevant operations and obtains the operation information sent by the client; based on the operation information, it determines the roaming information corresponding to the main decoder.
[0058] When the first decoder is a slave decoder, the roaming information corresponding to the slave decoder sent by the master decoder is received.
[0059] Specifically, when the first decoder is the master decoder, it connects to the client. After the user inputs the operation information corresponding to the virtual LED roaming to the client, the master decoder can obtain the operation information sent by the client through the communication connection between the client and the master decoder. This operation information is the data operation information performed by the user on the target virtual LED in the distributed decoders. This operation information includes the master decoder involved in the current roaming, or the roaming information corresponding to the master decoder and each slave decoder. After receiving the operation information, the master decoder classifies the operation information to determine the roaming information corresponding to the master decoder, or determines the roaming information corresponding to the master decoder and each slave decoder. When the first decoder is a slave decoder, after the master decoder receives the operation information sent by the client and classifies it to obtain the roaming information corresponding to the master decoder and each slave decoder, the slave decoder and the master decoder can communicate through a switch. That is, the slave decoder can obtain the roaming information corresponding to the slave decoder sent by the master decoder through the switch.
[0060] It should be noted that this roaming information only applies to the roaming information required by a single decoder. For a complete virtual LED, this roaming information includes information on data operations performed on a portion of the complete virtual LED's content. For example, if the display content corresponding to the complete virtual LED is "Welcome all leaders for your guidance," this roaming information is used to add or delete "Welcome all leaders."
[0061] Further, obtaining the backup memory corresponding to the first decoder includes:
[0062] If the first decoder is roaming for the first time, obtain the backup memory that is in an idle state corresponding to the first decoder;
[0063] If the first decoder is not roaming for the first time, the first display memory corresponding to the previous roaming of the first decoder is obtained; based on the roaming information corresponding to the previous roaming, the pixel data of the target virtual LED corresponding to the previous roaming is updated in the first display memory to obtain the backup memory corresponding to the first decoder.
[0064] Specifically, if the first decoder is roaming for the first time, it can request a new backup memory. For the current roaming, this backup memory is in an idle state, meaning it only contains the image data to be displayed and does not include any data corresponding to virtual LEDs. If the first decoder is not roaming for the first time, after the previous memory switch, it obtains the first display memory corresponding to the previous roaming. That is, during the previous roaming, the backup memory corresponding to the previous roaming is used to replace the first display memory of the previous roaming. At this time, the first display memory can be obtained, and according to the roaming information corresponding to the previous roaming, the pixel data of the target virtual LED in the first display memory can be manipulated to match the pixel data of the first display memory with the backup memory corresponding to the previous roaming. The updated first display memory is then determined as the backup memory for the current roaming.
[0065] Optionally, the roaming information includes the target roaming type, target location, and data to be operated corresponding to the target virtual LED. Wherein:
[0066] 1) The target virtual LED can be one of the at least one virtual LED included in the backup memory, or it can be a virtual LED that needs to be added to the backup memory.
[0067] 2) Target roaming types include cross-device roaming and single-device roaming. Cross-device roaming allows the target virtual LED to roam from the first decoder to other decoders; for example, the target virtual LED roams between the master decoder and slave decoders, or between slave decoders. Single-device roaming allows the target virtual LED to roam within the first decoder, meaning the position of the target virtual LED changes within the first decoder.
[0068] 3) When the target roaming type is cross-device roaming, and the target virtual LED is one of at least one virtual LED included in the backup memory, the target location is the position of the target virtual LED in the backup memory; that is, the target virtual LED already exists at the target location. When the target roaming type is cross-device roaming, and the target virtual LED is a new virtual LED that needs to be added to the backup memory, the target location is the new location of the target virtual LED in the backup memory; in this case, the target virtual LED does not exist at the target location. When the target roaming type is single-device roaming, the target location is the position of the target virtual LED after roaming in the backup memory; in this case, the target virtual LED does not exist at the target location.
[0069] 4) The data to be operated on can be text information and image information of the target virtual LED. By identifying the data to be operated on, the character data corresponding to the target virtual LED can be determined.
[0070] Furthermore, before switching the display memory corresponding to the first decoder to the updated backup memory, the method further includes:
[0071] When the target roaming type is cross-device roaming and the first decoder is the master decoder, the system receives confirmation information corresponding to each of the slave decoders. The confirmation information is used to indicate that the backup memory update corresponding to each slave decoder is complete. When a pulse signal is detected, the system sends multicast information to each slave decoder. The multicast information is used to instruct each slave decoder to switch the display memory to the updated backup memory.
[0072] When the target roaming type is cross-device roaming and the first decoder is a slave decoder, an acknowledgment message is sent to the master decoder, the acknowledgment message indicating that the backup memory corresponding to the slave decoder has been updated; multicast information sent by the master decoder is received, the multicast information instructing the slave decoder to switch the display memory to the updated backup memory.
[0073] Specifically, after the first decoder updates its backup memory, if the first decoder is the master decoder and the target roaming type is cross-device roaming, the master decoder can receive confirmation information sent by each slave decoder to the master decoder via the switch after updating its backup memory, indicating that the slave decoder's backup memory has been updated. Upon receiving confirmation information from all slave decoders and detecting the arrival of the display pulse signal, the master decoder sends multicast information to each slave decoder to instruct them to synchronously switch memory, that is, to switch the display memory of each slave decoder to the updated backup memory. The master decoder then synchronously executes the step of switching the display memory to the updated backup memory. If the first decoder is a slave decoder and the target roaming type is cross-device roaming, each slave decoder, after updating its backup memory, sends confirmation information to the master decoder via the switch, notifying the master decoder that its backup memory update is complete. Afterwards, each slave decoder can also receive multicast information sent by the master decoder via the switch and perform memory switching upon receiving the multicast information.
[0074] Furthermore, when the target roaming type is single-device roaming, and the first decoder is a slave decoder, no confirmation information needs to be sent to the master decoder after updating the memory. Memory switching can be performed after the slave decoder updates its backup memory. Similarly, when the first decoder is the master decoder, the master decoder also does not need to send multicast information to the slave decoder; the master decoder can perform memory switching after updating its backup memory.
[0075] Further, updating the target virtual LED in the backup memory based on the roaming information to obtain the updated backup memory includes:
[0076] When the target roaming type is cross-device roaming, the character data corresponding to the data to be operated is determined from the character library; based on the target location, the target virtual LED corresponding to the character data is determined; the pixel value corresponding to the target virtual LED is adjusted in the backup memory to obtain the updated backup memory;
[0077] When the target roaming type is single-device roaming, the target virtual LED is determined based on the data to be operated; the target virtual LED is adjusted to the target position in the backup memory to obtain the updated backup memory.
[0078] Specifically, when the target roaming type is cross-device roaming, it means that the target virtual LED needs to be added or deleted in the first decoder. In this case, the data to be operated on can be recognized. After recognizing the text, the character data corresponding to the text is determined from the character library based on the character's encoding. This character data can be understood as the glyph information corresponding to the text. Then, combining the target position and the character data, the target virtual LED is determined, and the pixel value corresponding to the target virtual LED in the backup memory is adjusted to update the backup memory. When the target roaming type is single-device roaming, it means that the position of the target virtual LED changes within the first decoder. In this case, the data to be operated on can be recognized. After recognizing the text, the target virtual LED to be roamed can be determined based on the text. Then, the target virtual LED can be assigned to the target position to adjust the position of the target virtual LED, thereby updating the backup memory. During single-device roaming, since there is no need to query the character data corresponding to the data to be operated on in the character library, roaming time is saved, thus improving the roaming efficiency of single-device roaming.
[0079] It should be noted that this character set is a database or collection of files that stores the mapping relationship between the encoding of a character and its glyph information. The characters include Chinese characters, letters, numbers, and symbols, etc., and this embodiment of the invention does not limit this.
[0080] Optionally, the roaming information also includes a target operation type. This target operation type can be understood as a data operation performed on the target virtual LED. The target operation type may include a deletion operation and / or a rendering operation. A deletion operation deletes the target virtual LED from the backup memory, while a rendering operation adds the target virtual LED to the backup memory.
[0081] Further, adjusting the pixel value corresponding to the target virtual LED in the backup memory to obtain the updated backup memory includes:
[0082] When the target operation type is a deletion operation, the pixel value corresponding to the target virtual LED is adjusted to a transparent color to obtain the updated backup memory;
[0083] And / or,
[0084] When the target operation type is a rendering operation, the pixel value corresponding to the target virtual LED is rendered as a preset color to obtain the updated backup memory.
[0085] Specifically, after determining the target virtual LED, if the pixel value corresponding to the target virtual LED in the backup memory is adjusted to a transparent color, the target virtual LED can be deleted from the VO module after the updated backup memory is sent to the display. Alternatively, if the pixel value at the target location in the backup memory is rendered to a preset color, the target virtual LED can be added at the target location in the VO module after the updated backup memory is sent to the display.
[0086] It should be noted that the preset color can be set according to the actual display scenario. For example, the preset color can be white, black, yellow, etc. The embodiments of the present invention do not limit this.
[0087] For example, Figure 4 This is a schematic diagram illustrating the effect of cross-device roaming provided in an embodiment of the present invention, such as... Figure 4 As shown, taking the first decoder as the main decoder, the target roaming type as cross-device roaming, and the target operation type as deletion as an example, before roaming, the display content corresponding to the target virtual LED in the main decoder is "Welcome everyone." By adjusting the pixel value of the display content corresponding to the target virtual LED to a transparent color, the target virtual LED is deleted from the display window of the main decoder after roaming. Taking the first decoder as the slave decoder 2, and the target operation type as rendering as an example, before roaming, the target virtual LED does not exist in the slave decoder 2, and the display content corresponding to the target virtual LED is "Welcome everyone." By rendering the pixel value at the target location to a preset color, the target virtual LED is displayed in the display window of the slave decoder 2 after roaming. At the same time, slave decoder 1 and slave decoder 3 execute their respective corresponding roaming operations, and the results can be obtained after the updated backup memory is sent to the display. Figure 4 The right side shows the display effect after roaming.
[0088] For example, Figure 5 This is a schematic diagram illustrating the effect of single-device roaming provided in an embodiment of the present invention, such as... Figure 5As shown, taking the first decoder as the main decoder and the target roaming type as single-device roaming as an example, before roaming, the display content corresponding to the target virtual LED in the main decoder is "Welcome all leaders to visit and guide us". By assigning the display content corresponding to the target virtual LED to the target location, the position of the target virtual LED in the backup memory can be adjusted, so that the position of the target virtual LED in the display window of the main decoder changes after roaming. Figure 5 The right side shows the display effect after roaming.
[0089] Furthermore, the method also includes:
[0090] When the target operation type is a one-click clear operation, obtain the transparent memory corresponding to the first decoder;
[0091] Switch the display memory corresponding to the first decoder to the transparent memory to clear all virtual LEDs corresponding to the first decoder.
[0092] Specifically, the backup memory of the first decoder may include at least two virtual LEDs. If the target operation type is a one-click clear operation, that is, when all virtual LEDs need to be cleared with one click, in the prior art, the more virtual LEDs there are, the larger the coverage area of the virtual LEDs, and the longer the clearing time for all virtual LEDs. Therefore, in this embodiment of the invention, while requesting backup memory for the first decoder, a transparent memory is also requested. The data space size of the transparent memory is the same as the data space size of the backup memory. When performing a one-click clear operation, the display memory can be directly replaced with the transparent memory. After the transparent memory is displayed, all virtual LEDs in the VO module can be replaced by transparent color, which is equivalent to deleting all virtual LEDs in the first decoder, greatly improving the clearing efficiency.
[0093] For example, Figure 6 This is a schematic diagram illustrating the effect of the one-click clearing operation provided in an embodiment of the present invention, such as... Figure 6 As shown, taking the first decoder as the main decoder as an example, the main decoder includes one complete virtual LED and two partial virtual LEDs. When performing a one-click clear operation, the memory sent to the display can be directly replaced with transparent memory. After the display is sent, the three virtual LEDs in the main decoder are displayed transparently, realizing one-click clearing of all virtual LEDs in the VO module, resulting in... Figure 6 The display effect is shown on the right.
[0094] Step 320: Synchronize and display the updated backup memory corresponding to each of the first decoders to perform roaming of the target virtual LED.
[0095] Specifically, after all the first decoders have switched memory, the updated backup memory corresponding to each of the first decoders is controlled to be sent to the display synchronously, so as to ensure that each updated backup memory is displayed synchronously in the VO module, avoiding the problem of display asynchrony caused by asynchronous display of each device or inconsistent CPU rendering time, and thus avoiding the problem of incomplete display.
[0096] The virtual LED roaming method provided in this embodiment of the invention, after obtaining the backup memory and roaming information corresponding to the first decoder, first updates the target virtual LED in the backup memory according to the roaming information to obtain the updated backup memory. After switching the display memory to the updated backup memory, the updated backup memory corresponding to each of the first decoders is synchronously displayed to realize the roaming of the target virtual LED. During the entire roaming process, the screen corresponding to the display memory is synchronously displayed before the updated backup memory is displayed, and the screen of the updated backup memory is synchronously displayed after the updated backup memory is displayed. This avoids direct data operation on the display memory, which would cause the first decoder to display an incomplete screen during the intermediate switching state. This improves the display effect while avoiding an increase in roaming costs.
[0097] The virtual LED roaming device provided by the present invention is described below. The virtual LED roaming device described below and the virtual LED roaming method described above can be referred to in correspondence.
[0098] This invention also provides a virtual LED roaming device applied to a distributed decoder, wherein the distributed decoder includes at least two first decoders, and the first decoders are either master decoders or slave decoders. Figure 7 This is a schematic diagram of the structure of the virtual LED roaming device provided in an embodiment of the present invention, as shown below. Figure 7 As shown, the virtual LED roaming device 700 includes: a switching module 710 and a synchronous display module 720, wherein:
[0099] The switching module 710 is used to obtain the backup memory and roaming information corresponding to each of the first decoders; update the target virtual LED in the backup memory based on the roaming information to obtain the updated backup memory; and switch the display memory corresponding to the first decoder to the updated backup memory.
[0100] The synchronous display module 720 is used to synchronously display the updated backup memory corresponding to each of the first decoders in order to perform roaming of the target virtual LED.
[0101] The virtual LED roaming device provided in this embodiment of the invention, after obtaining the backup memory and roaming information corresponding to the first decoder, first updates the target virtual LED in the backup memory according to the roaming information to obtain the updated backup memory. After switching the display memory to the updated backup memory, the updated backup memory corresponding to each of the first decoders is synchronously displayed to realize the roaming of the target virtual LED. During the entire roaming process, the screen corresponding to the display memory is displayed synchronously before the updated backup memory is displayed, and the screen of the updated backup memory is displayed synchronously after the updated backup memory is displayed. This avoids direct data operation on the display memory, which would cause the first decoder to display an incomplete screen during the intermediate switching state. This improves the display effect while avoiding an increase in roaming costs.
[0102] Optionally, the switching module 710 is specifically used for:
[0103] If the first decoder is roaming for the first time, obtain the backup memory that is in an idle state corresponding to the first decoder;
[0104] If the first decoder is not roaming for the first time, the first display memory corresponding to the previous roaming of the first decoder is obtained; based on the roaming information corresponding to the previous roaming, the pixel data of the target virtual LED corresponding to the previous roaming is updated in the first display memory to obtain the backup memory corresponding to the first decoder.
[0105] Optionally, the switching module 710 is specifically used for:
[0106] When the first decoder is the main decoder, it responds to the user's relevant operations and obtains the operation information sent by the client; based on the operation information, it determines the roaming information corresponding to the main decoder.
[0107] When the first decoder is a slave decoder, the roaming information corresponding to the slave decoder sent by the master decoder is received.
[0108] Optionally, the roaming information includes the target roaming type, target location, and data to be operated corresponding to the target virtual LED.
[0109] Optionally, the switching module 710 is specifically used for:
[0110] When the target roaming type is cross-device roaming, the character data corresponding to the data to be operated is determined from the character library; based on the target location, the target virtual LED corresponding to the character data is determined; the pixel value corresponding to the target virtual LED is adjusted in the backup memory to obtain the updated backup memory;
[0111] When the target roaming type is single-device roaming, the target virtual LED is determined based on the data to be operated; the target virtual LED is adjusted to the target position in the backup memory to obtain the updated backup memory.
[0112] Optionally, the roaming information may also include the target operation type.
[0113] Optionally, the switching module 710 is specifically used for:
[0114] When the target operation type is a deletion operation, the pixel value corresponding to the target virtual LED is adjusted to a transparent color to obtain the updated backup memory;
[0115] And / or,
[0116] When the target operation type is a rendering operation, the pixel value corresponding to the target virtual LED is rendered as a preset color to obtain the updated backup memory.
[0117] Optionally, the virtual LED roaming device 700 also includes a one-click clearing module, which is specifically used for:
[0118] When the target operation type is a one-click clear operation, obtain the transparent memory corresponding to the first decoder;
[0119] Switch the display memory corresponding to the first decoder to the transparent memory to clear all virtual LEDs corresponding to the first decoder.
[0120] Optionally, the virtual LED roaming device 700 also includes a communication module, which is specifically used for:
[0121] When the target roaming type is cross-device roaming and the first decoder is the master decoder, the system receives confirmation information corresponding to each of the slave decoders. The confirmation information is used to indicate that the backup memory update corresponding to each slave decoder is complete. When a pulse signal is detected, the system sends multicast information to each slave decoder. The multicast information is used to instruct each slave decoder to switch the display memory to the updated backup memory.
[0122] When the target roaming type is cross-device roaming and the first decoder is a slave decoder, an acknowledgment message is sent to the master decoder, the acknowledgment message indicating that the backup memory corresponding to the slave decoder has been updated; multicast information sent by the master decoder is received, the multicast information instructing the slave decoder to switch the display memory to the updated backup memory.
[0123] This invention also provides a distributed decoder. Figure 8 This is a schematic diagram of the structure of the distributed decoder provided in an embodiment of the present invention, as shown below. Figure 8 As shown, the distributed decoder 800 includes a master decoder 810, at least one slave decoder 820, and a switch 830. Both the master decoder 810 and the at least one slave decoder 820 are communicatively connected to the switch 830. Both the master decoder 810 and the at least one slave decoder 820 are used to execute the virtual LED roaming method described above. Each master decoder 810 and each slave decoder 820 has a corresponding display window in the VO module, and all display windows are stitched together to form the display screen of the distributed decoder 800.
[0124] In this embodiment of the invention, the distributed decoder 800 includes a master decoder 810 and at least one slave decoder 820. It is not limited by the number of devices and does not require a high-performance DSP chip. The virtual LED roaming described above can be effectively completed using a CPU, thus avoiding an increase in roaming costs.
[0125] Figure 9 This is a schematic diagram of the structure of the first decoder provided in an embodiment of the present invention, as shown below. Figure 9 As shown, the first decoder may include: a processor 910, a communication interface 920, a memory 930, and a communication bus 940, wherein the processor 910, the communication interface 920, and the memory 930 communicate with each other through the communication bus 940. The processor 910 can call logical instructions in the memory 930 to execute a virtual LED roaming method, which includes:
[0126] For each of the first decoders, obtain the backup memory and roaming information corresponding to the first decoder; based on the roaming information, update the target virtual LED in the backup memory to obtain the updated backup memory; switch the display memory corresponding to the first decoder to the updated backup memory;
[0127] The updated backup memory corresponding to each of the first decoders is synchronized and sent to the display to perform roaming of the target virtual LED.
[0128] Furthermore, the logical instructions in the aforementioned memory 930 can be implemented as software functional units and, when sold or used as independent products, can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, essentially, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0129] On the other hand, the present invention also provides a computer program product, the computer program product comprising a computer program that can be stored on a computer-readable storage medium, wherein when the computer program is executed by a processor, the computer is able to execute the virtual LED roaming method provided by the above methods, the method comprising:
[0130] For each of the first decoders, obtain the backup memory and roaming information corresponding to the first decoder; based on the roaming information, update the target virtual LED in the backup memory to obtain the updated backup memory; switch the display memory corresponding to the first decoder to the updated backup memory;
[0131] The updated backup memory corresponding to each of the first decoders is synchronized and sent to the display to perform roaming of the target virtual LED.
[0132] In another aspect, the present invention also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to perform the virtual LED roaming method provided by the methods described above, the method comprising:
[0133] For each of the first decoders, obtain the backup memory and roaming information corresponding to the first decoder; based on the roaming information, update the target virtual LED in the backup memory to obtain the updated backup memory; switch the display memory corresponding to the first decoder to the updated backup memory;
[0134] The updated backup memory corresponding to each of the first decoders is synchronized and sent to the display to perform roaming of the target virtual LED.
[0135] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without any creative effort.
[0136] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments.
[0137] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A virtual LED roaming method, characterized in that, Applied to a distributed decoder, wherein the distributed decoder includes at least two first decoders, the first decoders being either a master decoder or a slave decoder, the method includes: For each of the first decoders, obtain the backup memory and roaming information corresponding to the first decoder; based on the roaming information, update the target virtual LED in the backup memory to obtain the updated backup memory; switch the display memory corresponding to the first decoder to the updated backup memory; The updated backup memory corresponding to each of the first decoders is synchronized and sent to the display to perform roaming of the target virtual LED.
2. The virtual LED roaming method according to claim 1, characterized in that, The step of obtaining the backup memory corresponding to the first decoder includes: If the first decoder is roaming for the first time, obtain the backup memory that is in an idle state corresponding to the first decoder; If the first decoder is not roaming for the first time, the first display memory corresponding to the previous roaming of the first decoder is obtained; based on the roaming information corresponding to the previous roaming, the pixel data of the target virtual LED corresponding to the previous roaming is updated in the first display memory to obtain the backup memory corresponding to the first decoder.
3. The virtual LED roaming method according to claim 1, characterized in that, The roaming information includes the target roaming type corresponding to the target virtual LED; Before switching the display memory corresponding to the first decoder to the updated backup memory, the method further includes: When the target roaming type is cross-device roaming and the first decoder is the master decoder, the system receives confirmation information corresponding to each of the slave decoders. The confirmation information is used to indicate that the backup memory update corresponding to each slave decoder is complete. When a pulse signal is detected, the system sends multicast information to each slave decoder. The multicast information is used to instruct each slave decoder to switch the display memory to the updated backup memory. When the target roaming type is cross-device roaming and the first decoder is a slave decoder, an acknowledgment message is sent to the master decoder, the acknowledgment message indicating that the backup memory corresponding to the slave decoder has been updated; multicast information sent by the master decoder is received, the multicast information instructing the slave decoder to switch the display memory to the updated backup memory.
4. The virtual LED roaming method according to claim 3, characterized in that, The roaming information also includes the target location and data to be operated corresponding to the target virtual LED; The step of updating the target virtual LED in the backup memory based on the roaming information to obtain the updated backup memory includes: When the target roaming type is cross-device roaming, the character data corresponding to the data to be operated is determined from the character library; based on the target location, the target virtual LED corresponding to the character data is determined; the pixel value corresponding to the target virtual LED is adjusted in the backup memory to obtain the updated backup memory; When the target roaming type is single-device roaming, the target virtual LED is determined based on the data to be operated; the target virtual LED is adjusted to the target position in the backup memory to obtain the updated backup memory.
5. The virtual LED roaming method according to claim 4, characterized in that, The roaming information also includes the target operation type; The step of adjusting the pixel value corresponding to the target virtual LED in the backup memory to obtain the updated backup memory includes: When the target operation type is a deletion operation, the pixel value corresponding to the target virtual LED is adjusted to a transparent color to obtain the updated backup memory; And / or, When the target operation type is a rendering operation, the pixel value corresponding to the target virtual LED is rendered as a preset color to obtain the updated backup memory.
6. The virtual LED roaming method according to claim 5, characterized in that, The method further includes: When the target operation type is a one-click clear operation, obtain the transparent memory corresponding to the first decoder; Switch the display memory corresponding to the first decoder to the transparent memory to clear all virtual LEDs corresponding to the first decoder.
7. The virtual LED roaming method according to any one of claims 1-6, characterized in that, Obtaining the roaming information corresponding to the first decoder includes: When the first decoder is the main decoder, it responds to the user's relevant operations and obtains the operation information sent by the client; based on the operation information, it determines the roaming information corresponding to the main decoder. When the first decoder is a slave decoder, the roaming information corresponding to the slave decoder sent by the master decoder is received.
8. A virtual LED roaming device, characterized in that, Applied to a distributed decoder, the distributed decoder including at least two first decoders, the first decoder being a master decoder or a slave decoder, the apparatus comprising: The switching module is used to obtain the backup memory and roaming information corresponding to each of the first decoders; update the target virtual LED in the backup memory based on the roaming information to obtain the updated backup memory; and switch the display memory corresponding to the first decoder to the updated backup memory. The synchronous display module is used to synchronously display the updated backup memory corresponding to each of the first decoders in order to roam the target virtual LED.
9. A distributed decoder, characterized in that, The device includes a master decoder, at least one slave decoder, and a switch. The master decoder and the at least one slave decoder are both communicatively connected to the switch. The master decoder and the at least one slave decoder are both used to perform the virtual LED roaming method as described in any one of claims 1-7.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that, The computer program implements the virtual LED roaming method as described in any one of claims 1-7 when executed by the master decoder or at least one slave decoder.
Citation Information
Patent Citations
Character display method and device, and electronic equipment
CN110895457A
Multi-channel decoder synchronous control method and device, and storage medium
CN111031194A
Video window roaming method and device, equipment and storage medium
CN115119034A
Virtual reality rendering method and device, terminal and computer storage medium
CN115576871A
Apparatus and method for displaying image on LED panel
CN116113906A