Image data distribution method, device, display screen control system and computer device
By calculating the network port load ratio and segmenting image data, the problem of image data transmission exceeding the network port pixel load limit is solved, and the normal display of the LED display screen is realized and the display effect is improved.
Patent Information
- Application Number
- CN202210097335.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-27
- Publication Date
- 2025-07-11
- Estimated Expiration
- 2042-01-27
AI Technical Summary
In the prior art, image data is likely to exceed the network port pixel load limit during transmission, resulting in an error in display of LED display screens and affecting the display effect.
By calculating the load-load ratio of the network port, determining the required number of network ports and the actual load-load-point number, dividing the image data into multiple sub-image data, and sending it to the LED box through the corresponding network ports for display.
It avoids the problem of incomplete image data distribution, ensures that the LED display can be displayed normally, and improves the display effect.
Smart Images

Figure CN114500907B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of LED display screen display control, and in particular to an image data sending method, device, display screen control system and computer equipment. Background Art
[0002] In the prior art, image data is transmitted to an LED screen (composed of multiple boxes) with a receiving card through a network port in a group control device (including a transmitter and a video processor) for display. There are multiple network ports in a group control device, and one network port can be connected to at least one box. However, since the output area of the network port (output network port) has a pixel load limit, during the transmission process, if the image data sent exceeds the pixel load limit of the output area, there will be a problem of error in the image data sending (the sent data is incomplete), which will make the LED screen unable to display normal images and affect the display effect of the LED display. Therefore, technical personnel in this field urgently need to find a new technical solution to solve the above problems. Summary of the invention
[0003] In view of the above problems, the present invention provides a method and device for sending image data, a display screen control system and a computer device.
[0004] The present invention provides a method for sending image data, comprising:
[0005] Obtain the network port rate, required network port load points, and frame rate and color depth of image data;
[0006] Calculate the network port load ratio based on the network port rate, required network port load points, and the frame rate and color depth of the image data;
[0007] Determine the required number of network ports and the actual number of load points of each network port based on the network port load ratio and the resolution of the image data;
[0008] According to the required number of network ports and the actual number of load points of each network port, the image data is divided into multiple sub-image data;
[0009] Each sub-image data is sent to the corresponding LED box through the corresponding network port for display.
[0010] Furthermore, according to the network port rate, the number of network port load points required, and the frame rate and color depth of the image data, the network port load ratio is calculated including:
[0011] Obtaining the row overhead when sending the image data, and determining the frame overhead when sending the image data according to the color depth;
[0012] Calculate the number of bits of data sent by the network port within 1s according to the line overhead, frame overhead, frame rate, color depth, and the number of points to be loaded by the required network port.
[0013] Calculate the network port load ratio according to the network port rate and the number of bits of data sent by the network port within 1s.
[0014] Furthermore, the frame overhead when sending image data is determined according to the color depth, including:
[0015] Determine the maximum number of pixels corresponding to each data packet according to the color depth.
[0016] Determine the number of data packets according to the number of required rows to be loaded in the required network port load points and the maximum number of pixels corresponding to each packet.
[0017] Obtain the packet overhead of each data packet, and determine the frame overhead when sending image data according to frame overhead = packet overhead * number of data packets.
[0018] Furthermore, calculating the number of bits of data sent by the network port within 1s according to the line overhead, frame overhead, frame rate, color depth, and the number of points to be loaded by the required network port includes:
[0019] Determine the bytes corresponding to the color depth according to the preset color depth - byte correspondence.
[0020] Substitute the line overhead, frame overhead, required network port load points, frame rate, and bytes corresponding to the color depth into the preset data volume bit number calculation formula to calculate the number of bits of data sent by the network port within 1s.
[0021] Among them, the preset data volume bit number calculation formula includes: data volume bit number = (frame overhead + number of rows * bytes corresponding to the color depth + line overhead) * number of columns * frame rate * 8, where the number of rows and columns are the number of required rows to be loaded and the number of required columns to be loaded in the required network port load points respectively.
[0022] The present invention also provides an image data sending device, which includes an information acquisition module, a network port load ratio calculation module, a network port number determination module, an image data segmentation module, and an image data sending module, where:
[0023] The information acquisition module is connected to the network port load ratio calculation module and is used to acquire the network port rate, the number of points to be loaded by the required network port, and the frame rate and color depth of the image data.
[0024] The network port load ratio calculation module is connected to the network port number determination module and is used to calculate the network port load ratio according to the network port rate, the number of points to be loaded by the required network port, and the frame rate and color depth of the image data.
[0025] The network port quantity determination module, connected to the image data segmentation module, is used to determine the required number of network ports and the actual number of loaded points of each network port according to the network port loading ratio and the resolution of the image data;
[0026] The image data segmentation module, connected to the image data distribution module, is used to segment the image data into multiple sub-image data according to the required number of network ports and the actual number of loaded points of each network port;
[0027] The image data distribution module is used to respectively send each sub-image data to the corresponding LED cabinet through the corresponding network port for display.
[0028] Further, the network port loading ratio calculation module includes an acquisition unit and a calculation unit, where:
[0029] The acquisition unit, connected to the calculation unit, is used to acquire the line overhead when sending the image data and determine the frame overhead when sending the image data according to the color depth;
[0030] The calculation unit is used to calculate the number of bits of data sent by the network port within 1s according to the line overhead, frame overhead, frame rate, color depth, and the required number of loaded points of the network port, and calculate the network port loading ratio according to the network port rate and the number of bits of data sent by the network port within 1s.
[0031] Further, the acquisition unit determining the frame overhead when sending the image data according to the color depth includes: determining the maximum number of pixels corresponding to each data packet according to the color depth; determining the number of data packets according to the required number of loaded rows in the required number of loaded points of the network port and the maximum number of pixels corresponding to each packet; acquiring the packet overhead of each data packet, and determining the frame overhead when sending the image data according to frame overhead = packet overhead * number of data packets.
[0032] Further, the calculation unit calculating the number of bits of data sent by the network port within 1s according to the line overhead, frame overhead, frame rate, color depth, and the required number of loaded points of the network port includes: determining the bytes corresponding to the color depth according to the preset color depth-byte correspondence; substituting the line overhead, frame overhead, required number of loaded points of the network port, frame rate, and the bytes corresponding to the color depth into the preset data volume bit number calculation formula to calculate the number of bits of data sent by the network port within 1s; where the preset data volume bit number calculation formula includes: data volume bit number = (frame overhead + line * bytes corresponding to the color depth + line overhead) * column * frame rate * 8, and line and column are the required number of loaded rows and the required number of loaded columns in the required number of loaded points of the network port respectively.
[0033] The present invention also provides a display screen control system, which includes a host computer, a video processor, and an LED cabinet, where:
[0034] The host computer is connected to the video processor and is used to send image data to the video processor;
[0035] A video processor, connected to the LED cabinet, is configured to divide the image data into multiple sub-image data according to the above-mentioned image data distribution method, and respectively send each sub-image data to the receiving card of the corresponding LED cabinet through the corresponding network port, so that the LED cabinet can perform display.
[0036] The present invention also provides a computer device, including a memory and a processor. A computer program is stored in the memory, and when the processor executes the computer program, the steps of the above-mentioned image data distribution method are implemented.
[0037] The image data distribution method, device, display screen control system and computer device provided by the present invention have at least the following beneficial effects: In the image data distribution method, device and computer device provided by the present invention, by means of data such as the number of points carried by the required network port, the network port rate, the frame rate and color depth of the image data, the network port load ratio is calculated. According to the network port load ratio and the resolution of the image data, the required number of network ports and the actual number of points carried by each network port are determined. Then, according to the required number of network ports and the actual number of points carried by each network port, the image data is segmented into multiple sub-image data, and each sub-image data is respectively sent to the corresponding LED cabinet through the corresponding network port for display. Therefore, when sending image data through the network port, the sent image data will not exceed the pixel loading limit of the network port, avoiding the problem of incorrect image data distribution (incomplete sent data), enabling the LED display screen to display images normally, and improving the display effect of the LED display screen. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, the following drawings are only some embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.
[0039] Figure 1 It is a flowchart of the image data distribution method in an embodiment of the present invention;
[0040] Figure 2 It is a flowchart of the network port load ratio calculation method in an embodiment of the present invention;
[0041] Figure 3 It is a flowchart of the frame overhead calculation method in an embodiment of the present invention;
[0042] Figure 4 It is a flowchart of the image data distribution device in an embodiment of the present invention;
[0043] Figure 5 Schematic diagram of the display control system structure in an embodiment of the present invention;
[0044] Figure 6 Schematic diagram of the computer device structure in an embodiment of the present invention;
[0045] 401 - Information acquisition module, 402 - Network port loading ratio calculation module, 403 - Network port quantity determination module, 404 - Image data segmentation module, 405 - Image data distribution module, 501 - Host computer, 502 - Video processor, 503 - LED box, 6 - Computer device, 601 - Processor, 602 - Memory, 603 - Communication bus. Detailed implementation manners
[0046] Next, the technical solutions in the embodiments of the present invention will be clearly and completely described in conjunction with the accompanying drawings in the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments in the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts belong to the protection scope of the present invention.
[0047] In an embodiment of the present invention, an image data distribution method is provided. As Figure 1 shown, the image data distribution method includes the following steps:
[0048] Step S101: Obtain the network port rate, the required number of points loaded by the network port, and the frame rate and color depth of the image data.
[0049] Among them, the network port rate is selected by the user according to the specific transmission rate of the network cable. The transmission rates of the network cable include 1 Gbps and 5 Gbps. If the transmission rate of the network cable is 1 Gbps, the network port rate is also 1 Gbps. If the transmission rate of the network cable is 5 Gbps, the network port rate is also 5 Gbps. Among them, there are 10 to the 9th power of bits in 1 GbPS, and 5 * 10 to the 9th power of bits in 5 GbPS; the frame rates of the image data include 24 Hz, 30 Hz, 50 Hz, 60 Hz, and 120 Hz; the color depths of the image data include 8 bit, 10 bit, and 12 bit; the required number of points loaded by the network port includes the required number of points loaded in rows and the required number of points loaded in columns.
[0050] The frame rate and color depth of the image data are pre-set by technicians according to actual playback requirements, and the present invention does not limit this. The required number of points loaded by the network port is determined according to the number of row pixels and column pixels in the complete image data. If the number of row pixels in the complete image data is 1280 and the number of column pixels is 512, in order to enable a network port to completely send down the image data, the required number of row points loaded by the network port is 1280, and the required number of column points loaded by the network port is 512.
[0051] It should be understood that only when the maximum number of points loaded by the network port is greater than or equal to the required number of points loaded by the network port (that is, the maximum number of row points loaded is greater than or equal to the required number of row points loaded, and the maximum number of column points loaded is greater than or equal to the required number of row points loaded), can the image data be completely sent down through one network port.
[0052] Step S102: Calculate the network port load ratio according to the network port rate, the required number of points loaded by the network port, and the frame rate and color depth of the image data;
[0053] Specifically, as Figure 2 shown, the specific method for calculating the network port load ratio includes:
[0054] Step S1021: Obtain the row overhead when sending down the image data, and determine the frame overhead when sending down the image data according to the color depth.
[0055] Among them, during the process of sending down the image data, the image data is sent down row by row (line feed instruction), but actually not all areas on the screen need to display the image data. At this time, the overhead for displaying the image data in each row can be considered as the row overhead, and the row overhead when sending down the image data is obtained by technicians through pre-testing. Currently, through testing, if the required number of row points loaded in the required number of points loaded by the network port is 1280, the row overhead for sending down the image data in the device (group control device) is 16 bytes.
[0056] The frame overhead, that is, the overhead for dividing 1 frame of image into multiple data packets for sending.
[0057] More specifically, as Figure 3 shown, determining the frame overhead when sending down the image data according to the color depth includes the following steps:
[0058] Step S301: Determine the maximum number of pixels corresponding to each data packet according to the color depth;
[0059] Each data packet has a maximum limit of the number of pixels, that is, the maximum number of pixels, which is determined by the hardware device. Among them, the limit number (the maximum number of pixels of the data packet) corresponding to 8-bit color depth is 497, the limit number (the maximum number of pixels of the data packet) corresponding to 10-bit color depth is 372, and the limit number (the maximum number of pixels of the data packet) corresponding to 12-bit color depth is 298.
[0060] Step S302: Determine the number of data packets according to the number of rows of the required dot loading in the required dot loading of the network port and the maximum number of pixels corresponding to each packet.
[0061] Taking the number of rows of the required dot loading in the required dot loading of the network port as 1280 as an example, when the color depth is 8 bits, the limit number corresponding to the 8-bit color depth is 497, that is, the maximum number of pixels corresponding to each data packet is 497. When the number of rows of the dot loading is 1280, the number of data packets is 3. That is, when sending data (one row of pixel point data in the image data), 1280 pixels are divided into 3 data packets. The first data packet corresponds to 497 pixels, the second data packet corresponds to 497 pixels, and the third data packet corresponds to 286 pixels.
[0062] Step S303: Obtain the packet overhead of each data packet, and determine the frame overhead when sending the image data according to Frame overhead = Packet overhead * Number of data packets.
[0063] That is, the sum of the packet overheads of all data packets is the frame overhead. Specifically, the packet overhead of each data packet is 51 bytes. If the number of data packets is 3, then the frame overhead is 3 * 51 = 153.
[0064] Step S1022: Calculate the number of bits of the data volume sent by the network port within 1 s according to the line overhead, frame overhead, frame rate, color depth, and the required dot loading of the network port.
[0065] In this step, the specific implementation method for calculating the number of bits of the data volume sent by the network port within 1 s is as follows:
[0066] Determine the bytes corresponding to the color depth according to the preset color depth-byte correspondence relationship, and substitute the line overhead, frame overhead, dot loading of the network port, frame rate, and the bytes corresponding to the color depth into the preset data volume bit number calculation formula to calculate the number of bits of the data volume sent by the network port within 1 s.
[0067] Specifically, when the color depth is 8 bits, the corresponding bytes are 3 bytes; when the color depth is 10 bits, the corresponding bytes are 5 bytes; when the color depth is 12 bits, the corresponding bytes are 6 bytes.
[0068] The preset data volume bit number calculation formula includes: Data volume bit number = (Frame overhead + Number of bytes corresponding to row * Color depth + Line overhead) * Column * Frame rate * 8, where row and column are the number of rows of the required dot loading and the number of columns of the required dot loading in the required dot loading of the network port, respectively.
[0069] Specifically, in the preset calculation formula for the number of bits of data volume, the units of the frame overhead, line overhead, and bytes corresponding to the color depth are all bytes. When calculating the number of bits of data volume, unit conversion is required to convert the unit byte to bits. 1 byte = 8 bits. Therefore, in the preset calculation formula for the number of bits of data volume, it is necessary to multiply by 8.
[0070] Step S1023: Calculate the network port load ratio according to the network port rate and the number of bits of data volume sent by the network port within 1 second.
[0071] Specifically, the network port load ratio is equal to the number of bits of data volume sent by the network port within 1 second divided by the number of bits corresponding to the network port rate. More specifically, in the field of communication, 1 Gbps = 10 9 bits / s. Therefore, when the network port rate is 1 Gbps, the maximum amount of data sent per second is 10 9 bits, and when the network port rate is 5 Gbps, the maximum amount of data sent per second is 5 * 10 9 . That is, when the network port rate is 1 Gbps, the number of bits corresponding to the network port rate is 10 9 , and when the network port rate is 5 Gbps, the number of bits corresponding to the network port rate is 5 * 10 9 .
[0072] To more clearly illustrate the calculation method in this step, the following is an example:
[0073] Taking the required number of line load points in the required network port load points as 1280, the required number of column load points as 512, the network port rate as 1 Gbps, the frame rate of the image data as 60 Hz, the color depth as 8 bit (the byte corresponding to the color depth is 3), the line overhead as 16, and the packet overhead as 51 as an example, the specific calculation is as follows:
[0074] Among them, the color depth is 8 bit, and the corresponding limit number is 497. When the required number of line load points is 1280, 3 data packets are required to send one line of image data.
[0075] Therefore, the frame overhead is: 51 * 3 = 153
[0076] Then the number of bits of data volume sent by the network port within 1 second is:
[0077] (153 + 1280 * 3 + 16) * 512 * 60 * 8 = 985251840 bit;
[0078] The network port load ratio = 985251840 / 1000000000, approximately 98.5%.
[0079] Step S103: Determine the required number of network ports and the actual load points of each network port according to the network port load ratio and the resolution of the image data.
[0080] Specifically, if the network port loading ratio is within 100%, it indicates that the downloaded image data does not exceed the maximum loading capacity of the network port. That is, only 1 network port is required to download all the image data at this time, so the required number of network ports is 1. At this time, the actual loading points of the network port are the required network port loading points.
[0081] If the network port loading ratio is greater than 100% and less than or equal to 200%, the required number of network ports is 2. If the network port loading ratio; if the network port loading ratio is greater than 200% and less than or equal to 300%, the required number of network ports is 3, and so on. Thus, the number of network ports can be determined according to the network port loading ratio.
[0082] Furthermore, in the case of determining the required number of network ports, technicians can allocate the actual loading points for each network port according to the actual situation, as long as the sum of the actual loading points of all network ports is equal to the size of the image data (the resolution of the image data). Among them, the resolution of the image data is the number of row pixels * the number of column pixels of the complete image data.
[0083] In one implementation, if the required number of network ports is N, the actual loading points of N - 1 of these network ports can be allocated as the maximum loading points of the network port, and the actual loading points of the other network port are the size of the image data minus the sum of the maximum loading points of N - 1 network ports. Taking N = 14 as an example, the maximum loading points of the network port are 1280×512 (that is, the maximum row loading points are 1280 and the maximum column loading points are 512), and the size of the image data (the resolution of the image data) is 4096×2160. Then the actual loading points of 13 network ports are 1280×512, and the actual loading points of the other network port are the remaining points 327680 calculated by 4096×2160 - 1280×512×13.
[0084] Step S104: Divide the image data into multiple sub - image data according to the required number of network ports and the actual loading points of each network port.
[0085] Furthermore, each sub - image data corresponds to a display area on the LED display screen. This display area is built by at least one LED cabinet, and all the display areas corresponding to all the sub - image data form the complete display area on the LED display screen.
[0086] Further, a group control device includes multiple network interfaces. The network interfaces on the group control device are used to connect to LED cabinets and send image data to the LED cabinets. When actually sending image data, according to the pre-determined required number of network interfaces, the sending network interfaces are selected, and each sending network interface corresponds to sending a sub-image data. At the same time, since the display area of each sub-image data on the LED display screen is determined, the LED cabinets (one or more LED cabinets corresponding to the display area of the sent sub-image data) connected by the sending network interfaces can be determined, specifically, the number and position (connection) of the LED cabinets are determined.
[0087] In this step, the image data is divided into multiple sub-image data according to the required number of network interfaces and the actual load-carrying points of each network interface. One sub-image data corresponds to one network interface, that is, the number of sub-image data is equal to the number of required network interfaces, and the size of each sub-image data is the same as the actual load-carrying points of the network interface corresponding to the sub-image data.
[0088] Specifically, the number and position (connection) of the LED cabinets corresponding to each network interface are determined according to the actual load-carrying points of the network interface and the LED cabinet resolution after the actual load-carrying points of each network interface are determined. Suppose the actual load-carrying points of a network interface are 1280*512, that is, the size of the sub-image data sent by this network interface is 1280*512, and the resolution of each cabinet is 128*128. At this time, the number and position of the LED cabinets can be determined. For example, there are 10 LED cabinets in the horizontal direction and 4 LED cabinets in the vertical direction.
[0089] Step S105: Respectively send each sub-image data through the corresponding network interface to the corresponding one or more LED cabinets for display.
[0090] In the image data sending method provided in this embodiment, by data such as the required network interface load-carrying points, network interface rate, frame rate, and color depth of the image data, the network interface load ratio is calculated. According to the network interface load ratio and the resolution of the image data, the required number of network interfaces and the actual load-carrying points of each network interface are determined. Then, according to the required number of network interfaces and the actual load-carrying points of each network interface, the image data is segmented into multiple sub-image data, and each sub-image data is respectively sent through the corresponding network interface to the corresponding LED cabinet for display. Thus, when sending image data through the network interface, the sent image data will not exceed the pixel load limit of the network interface, avoiding the problem of incorrect image data sending (incomplete sent data), enabling the LED display screen to display images normally, and improving the display effect of the LED display screen.
[0091] In another embodiment of the present invention, as Figure 4As shown in the figure, an image data transmission device is also provided. The device includes an information acquisition module 401, a network port load ratio calculation module 402, a network port number determination module 403, an image data segmentation module 404, and an image data transmission module 405, where:
[0092] The information acquisition module 401 is connected to the network port load ratio calculation module 402 and is used to acquire the network port rate, the required number of network port load points, and the frame rate and color depth of the image data.
[0093] The network port load ratio calculation module 402 is connected to the network port number determination module 403 and is used to calculate the network port load ratio according to the network port rate, the required number of network port load points, and the frame rate and color depth of the image data.
[0094] The network port number determination module 403 is connected to the image data segmentation module 404 and is used to determine the required number of network ports and the actual load points of each network port according to the network port load ratio and the resolution of the image data.
[0095] The image data segmentation module 404 is connected to the image data transmission module 405 and is used to divide the image data into multiple sub-image data according to the required number of network ports and the actual load points of each network port.
[0096] The image data transmission module 405 is used to transmit each sub-image data to the corresponding LED cabinet through the corresponding network port for display.
[0097] In the image data transmission device provided in this embodiment, the network port load ratio is calculated through data such as the required number of network port load points, the network port rate, the frame rate, and the color depth of the image data. According to the network port load ratio and the resolution of the image data, the required number of network ports and the actual load points of each network port are determined. Then, according to the required number of network ports and the actual load points of each network port, the image data is segmented into multiple sub-image data, and each sub-image data is transmitted to the corresponding LED cabinet through the corresponding network port for display. Therefore, when transmitting image data through the network port, the transmitted image data will not exceed the pixel load limit of the network port, avoiding the problem of incorrect image data transmission (incomplete transmitted data), enabling the LED display screen to display images normally, and improving the display effect of the LED display screen.
[0098] In another embodiment of the present invention, the network port load ratio calculation module 402 includes an acquisition unit and a calculation unit, where:
[0099] The acquisition unit is connected to the calculation unit and is used to acquire the line overhead when transmitting the image data and determine the frame overhead when transmitting the image data according to the color depth.
[0100] A calculation unit, configured to calculate the number of bits of data sent by a network port within 1 second according to the line overhead, frame overhead, frame rate, color depth, and the number of points loaded by the required network port, and calculate the network port load ratio according to the network port rate and the number of bits of data sent by the network port within 1 second.
[0101] In another embodiment of the present invention, the obtaining unit determines the frame overhead when sending image data according to the color depth, including: determining the maximum number of pixels corresponding to each data packet according to the color depth; determining the number of data packets according to the number of rows loaded by the required network port among the number of points loaded by the required network port and the maximum number of pixels corresponding to each packet; obtaining the packet overhead of each data packet, and determining the frame overhead when sending image data according to frame overhead = packet overhead * number of data packets.
[0102] Further, the calculation unit calculates the number of bits of data sent by the network port within 1 second according to the line overhead, frame overhead, frame rate, color depth, and the number of points loaded by the required network port, including:
[0103] Determine the byte corresponding to the color depth according to the preset color depth-byte correspondence;
[0104] Substitute the line overhead, frame overhead, number of points loaded by the required network port, frame rate, and the byte corresponding to the color depth into the preset data volume bit number calculation formula to calculate the number of bits of data sent by the network port within 1 second;
[0105] Wherein, the preset data volume bit number calculation formula includes: data volume bit number = (frame overhead + number of rows * byte corresponding to color depth + line overhead) * number of columns * frame rate * 8, where the number of rows and columns are the number of rows loaded by the required network port and the number of columns loaded by the required network port among the number of points loaded by the required network port, respectively.
[0106] Even further, the calculation unit calculates the network port load ratio according to the network port rate and the number of bits of data sent by the network port within 1 second, including:
[0107] Divide the number of bits of data sent by the network port within 1 second by the number of bits corresponding to the network port rate to obtain the network port load ratio.
[0108] As Figure 5 shown, the present invention also provides a display screen control system, which includes a host computer 501, a video processor 502, and an LED box 503, wherein:
[0109] The host computer is connected to the video processor and is configured to send image data to the video processor;
[0110] A video processor is connected to the LED cabinet and is used to divide the image data into multiple sub-image data according to the above image data distribution method, and respectively send each sub-image data to the receiving card of the corresponding LED cabinet through the corresponding network port (multiple network ports are provided in the video processor), so that the LED cabinet can perform display.
[0111] As Figure 6 shown, the present invention also provides a computer device 6, including: a processor 601 and a memory 602. The processor 601 and the memory 602 are interconnected and communicate with each other through a communication bus 603 and / or other forms of connection mechanisms (not marked). The memory 602 stores a computer program executable by the processor 601. When the computing device runs, the processor 601 executes the computer program to execute the method in any optional implementation manner of the above embodiments.
[0112] In the image data distribution method, device, display screen control system and computer device provided in the present invention, by means of data such as the number of points carried by the required network port, the network port rate, the frame rate of the image data, and the color depth, the network port load ratio is calculated. According to the network port load ratio and the resolution of the image data, the required number of network ports and the actual number of points carried by each network port are determined. Then, according to the required number of network ports and the actual number of points carried by each network port, the image data is segmented into multiple sub-image data, and each sub-image data is respectively sent to the corresponding LED cabinet through the corresponding network port for display. Thus, when the image data is sent through the network port, the sent image data will not exceed the pixel load limit of the network port, avoiding the problem of incorrect image data distribution (incomplete sent data), enabling the LED display screen to normally perform image display, and improving the display effect of the LED display screen.
[0113] The terms and expressions used in the description of the present invention are for illustrative purposes only and do not constitute a limitation. Those skilled in the art should understand that various changes can be made to the details of the above embodiments without departing from the basic principles of the disclosed embodiments. Therefore, the scope of the present invention is only determined by the claims, and in the claims, unless otherwise specified, all terms should be understood in the broadest reasonable sense.
Claims
1. An image data distribution method, characterized in that, The method includes: Obtaining the network port rate, the required number of points loaded by the network port, and the frame rate and color depth of the image data; Calculating the network port load ratio according to the network port rate, the required number of points loaded by the network port, and the frame rate and color depth of the image data; Determining the required number of network ports and the actual number of points loaded by each network port according to the network port load ratio and the resolution of the image data; Dividing the image data into multiple sub-image data according to the required number of network ports and the actual number of points loaded by each network port, so as to select the network ports for sending according to the required number of network ports, and each sending network port corresponds to sending one sub-image data; Sending each sub-image data to the corresponding LED box body through the corresponding network port for display respectively; Among them, the calculating the network port load ratio according to the network port rate, the required number of points loaded by the network port, and the frame rate and color depth of the image data includes: Obtaining the line overhead when sending the image data, and determining the frame overhead when sending the image data according to the color depth; Calculating the number of bits of data sent by the network port within 1s according to the line overhead, frame overhead, frame rate, color depth, and the required number of points loaded by the network port; Calculating the network port load ratio according to the network port rate and the number of bits of data sent by the network port within 1s; The network port load ratio is equal to the number of bits of data sent by the network port within 1s divided by the number of bits corresponding to the network port rate; Calculating the number of bits of data sent by the network port within 1s according to the line overhead, frame overhead, frame rate, color depth, and the required number of points loaded by the network port includes: Determining the byte corresponding to the color depth according to the preset color depth-byte correspondence; Substituting the line overhead, frame overhead, required number of points loaded by the network port, frame rate, and the byte corresponding to the color depth into the preset data volume bit number calculation formula to calculate the number of bits of data sent by the network port within 1s; Among them, the preset data volume bit number calculation formula includes: the number of bits of data volume = (frame overhead + row * byte corresponding to color depth + line overhead) * column * frame rate * 8, where row and column are the required number of row load points and the required number of column load points in the required number of points loaded by the network port respectively.
2. The image data distribution method according to claim 1, characterized in that The determining the frame overhead when sending the image data according to the color depth includes: Determining the maximum number of pixels corresponding to each data packet according to the color depth; Determining the number of data packets according to the required number of row load points in the required number of points loaded by the network port and the maximum number of pixels corresponding to each packet; Obtaining the packet overhead of each data packet, and determining the frame overhead when sending the image data according to frame overhead = packet overhead * number of data packets.
3. An image data distribution device, characterized in that, The device includes an information acquisition module, a network port load ratio calculation module, a network port number determination module, an image data segmentation module, and an image data sending module, where: The information acquisition module, connected to the network port load ratio calculation module, is used to obtain the network port rate, the required number of points loaded by the network port, and the frame rate and color depth of the image data; The network port load ratio calculation module, connected to the network port number determination module, is used to calculate the network port load ratio according to the network port rate, the required number of points loaded by the network port, and the frame rate and color depth of the image data; The network port quantity determination module, connected to the image data segmentation module, is used to determine the required number of network ports and the actual number of loaded points of each network port according to the network port loading ratio and the resolution of the image data; The image data segmentation module, connected to the image data distribution module, is used to divide the image data into multiple sub-image data according to the required number of network ports and the actual number of loaded points of each network port, so as to select the distribution network ports according to the required number of network ports, and each distribution network port corresponds to a sub-image data for distribution; The image data distribution module is used to respectively distribute each sub-image data to the corresponding LED cabinet through the corresponding network port for display; Among them, the network port loading ratio calculation module includes an acquisition unit and a calculation unit, where: The acquisition unit, connected to the calculation unit, is used to acquire the line overhead when distributing the image data and determine the frame overhead when distributing the image data according to the color depth; The calculation unit is used to calculate the number of bits of data sent by the network port within 1s according to the line overhead, frame overhead, frame rate, color depth and the required number of loaded points of the network port, and calculate the network port loading ratio according to the network port rate and the number of bits of data sent by the network port within 1s; The network port loading ratio is equal to the number of bits of data sent by the network port within 1s divided by the number of bits corresponding to the network port rate; The calculation unit calculates the number of bits of data sent by the network port within 1s according to the line overhead, frame overhead, frame rate, color depth and the required number of loaded points of the network port, including: Determine the byte corresponding to the color depth according to the preset color depth-byte correspondence; Substitute the line overhead, frame overhead, required number of loaded points of the network port, frame rate and the byte corresponding to the color depth into the preset data volume bit number calculation formula to calculate the number of bits of data sent by the network port within 1s; Among them, the preset data volume bit number calculation formula includes: the number of bits of data volume = (frame overhead + line * byte corresponding to color depth + line overhead) * column * frame rate * 8, where line and column are the required number of row loaded points and the required number of column loaded points in the required number of loaded points of the network port respectively.
4. The image data distribution device according to claim 3, wherein, The acquisition unit determines the frame overhead when distributing the image data according to the color depth, including: determining the maximum number of pixels corresponding to each data packet according to the color depth; determining the number of data packets according to the required number of row loaded points in the required number of loaded points of the network port and the maximum number of pixels corresponding to each packet; acquiring the packet overhead of each data packet, and determining the frame overhead when distributing the image data according to the frame overhead = packet overhead * number of data packets.
5. A display screen control system, characterized in that The system includes a host computer, a video processor and an LED cabinet, where: The host computer is connected to the video processor and is used to send image data to the video processor; The video processor, connected to the LED cabinet, is used to divide the image data into multiple sub-image data according to the image data distribution method according to any one of claims 1 to 2, and respectively distribute each sub-image data to the receiving card of the corresponding LED cabinet through the corresponding network port, so that the LED cabinet can perform display.
6. A computer device, comprising a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the method steps of the image data distribution method described in any one of claims 1 to 2 are implemented.
Citation Information
Patent Citations
Method and system for engineering wiring of LED display system
CN104167182A
Image processing method, image play method and related device and system
CN105611213A