Network port on-load optimization method, device, equipment and medium
By determining and transmitting effective pixel points in network port load optimization, the problems of high cost and low efficiency of traditional network port load optimization methods are solved, and efficient load optimization and image transmission stability and reliability of a single network port are achieved.
Patent Information
- Application Number
- CN202411983460.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-31
- Publication Date
- 2025-04-18
AI Technical Summary
The traditional network port load optimization method is costly and cannot effectively avoid invalid pixel points, resulting in low load efficiency of a single network port.
The first effective pixel point is determined based on the load range of the target network port and the display resolution of the image display, and the effective pixel load area is divided based on the box distribution information, and the second effective pixel point is accurately divided and transmitted to achieve efficient load optimization for a single network port.
Effectively avoid invalid pixel points, reduce unnecessary data transmission, improve transmission efficiency, reduce bandwidth requirements for the target network port, and improve the stability and reliability of image transmission.
Smart Images

Figure CN119854592A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a network port load optimization method, device, equipment and medium. Background Art
[0002] With the continuous advancement of image display technology, the resolution and clarity of images are getting higher and higher, which also puts higher requirements on the load capacity of network ports. In order to meet the needs of image transmission, it is necessary to optimize the load capacity of network ports.
[0003] At present, the traditional way to optimize network port load is usually to increase the number of network ports to improve the network port load capacity to meet the needs of image transmission. However, the traditional network port load optimization method is costly, cannot effectively avoid invalid pixels, and the load efficiency of a single network port is low. Summary of the invention
[0004] The present invention provides a network port load optimization method, device, equipment and medium to achieve load optimization of a single network port, reduce the network port cost, and effectively avoid invalid pixels, greatly improving the load efficiency of a single network port.
[0005] In a first aspect, an embodiment of the present invention provides a method for optimizing network port load, including:
[0006] Determine a first valid pixel point in the image to be transmitted based on the load range of the target network port to be optimized and the display resolution of the image display;
[0007] Based on the cabinet distribution information in the target network port, the pixel carrying area of the target network port is divided to determine a plurality of effective pixel carrying areas corresponding to the target network port, wherein each cabinet in the target network port corresponds to a part of the display area in the image display;
[0008] Based on the effective pixel carrying area, the first effective pixel points are divided to determine the second effective pixel points corresponding to each effective pixel carrying area;
[0009] Each second effective pixel point is transmitted to the effective pixel carrying area corresponding to the second effective pixel point, so that the target network port transmits the second effective pixel point to the image display for display.
[0010] In a second aspect, an embodiment of the present invention further provides a network port load optimization device, including:
[0011] A pixel point determination module, used to determine a first valid pixel point in the image to be transmitted based on the load range of the target network port to be optimized and the display resolution of the image display;
[0012] A loading area determination module, used to divide the pixel loading area of the target network port based on the cabinet distribution information in the target network port, and determine a plurality of effective pixel loading areas corresponding to the target network port, wherein each cabinet in the target network port corresponds to a part of the display area in the image display;
[0013] A pixel point division module, used for dividing the first effective pixel points based on the effective pixel carrying area, and determining the second effective pixel points corresponding to each effective pixel carrying area;
[0014] The pixel point transmission module is used to transmit each second effective pixel point to the effective pixel carrying area corresponding to the second effective pixel point, so that the target network port transmits the second effective pixel point to the image display for display.
[0015] In a third aspect, an embodiment of the present invention further provides an electronic device, characterized in that the electronic device comprises: at least one processor; and
[0016] a memory communicatively connected to the at least one processor; wherein,
[0017] The memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the network port load optimization method provided in any embodiment of the present invention.
[0018] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, characterized in that the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to execute the network port load optimization method provided by any embodiment of the present invention when executing.
[0019] The technical solution of the embodiment of the present invention can reduce unnecessary data transmission, improve transmission efficiency, and reduce the bandwidth requirements of the target network port by determining the first effective pixel point in the image to be transmitted based on the load range of the target network port to be optimized and the display resolution of the image display. Based on the box distribution information in the target network port, the pixel load area of the target network port is divided to determine multiple effective pixel load areas corresponding to the target network port, wherein each box in the target network port corresponds to a part of the display area in the image display, which can manage the transmission and display of image data more flexibly, thereby helping to avoid data congestion and transmission delay, and improve the stability and reliability of image transmission. Based on the effective pixel load area, the first effective pixel point is divided to determine the second effective pixel point corresponding to each effective pixel load area, which can more accurately control the transmission and display of image data. Each second effective pixel point is transmitted to the effective pixel load area corresponding to the second effective pixel point, so that the target network port transmits the second effective pixel point to the image display for display, which can ensure that the image data can accurately reach the specified position on the image display. By accurately calculating the effective pixel range and dividing the pixel loading area, invalid pixels can be effectively avoided, thereby reducing unnecessary data transmission and improving transmission efficiency. The optimized network port loading solution can more efficiently utilize the bandwidth resources of the target network port, reduce bandwidth requirements, and more flexibly manage the transmission and display of image data, avoid data congestion and transmission delays, and improve the stability and reliability of image transmission.
[0020] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0022] Figure 1 This is a flow chart of a network port load optimization method provided according to Embodiment 1 of the present invention;
[0023] Figure 2 This is an example diagram of cabinet distribution information within a network port according to Embodiment 1 of the present invention;
[0024] Figure 3is a flow chart of a network port load optimization method provided according to Embodiment 2 of the present invention;
[0025] Figure 4 is a structural schematic diagram of a network port load optimization device provided according to Embodiment 3 of the present invention;
[0026] Figure 5 It is a structural schematic diagram of an electronic device that implements the network port load optimization method of an embodiment of the present invention. DETAILED DESCRIPTION
[0027] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0028] It should be noted that the terms "target", "current", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0029] Embodiment 1
[0030] Figure 1 A flowchart of a method for optimizing network port load is provided for the first embodiment of the present invention. This embodiment is applicable to the case of optimizing the load of a single network port. Figure 1 As shown, the method can be performed by a network port load optimization device, which can be implemented in the form of hardware and / or software, and can be configured in an electronic device. Figure 1 As shown, the method specifically comprises the following steps:
[0031] S110: Determine a first valid pixel point in the image to be transmitted based on the load range of the target network port to be optimized and the display resolution of the image display.
[0032] Among them, the target network port may refer to a network interface for transmitting image data. The load range may refer to the maximum amount of data or the number of pixels that the target network port can transmit. The image display may refer to a device for displaying images, for example, the image display may be a computer monitor, a TV screen, etc. The display resolution may refer to the resolution of the image display when displaying an image, which can usually be expressed by the number of pixels per row multiplied by the number of pixels per column. The image to be transmitted may refer to image data that needs to be transmitted from the network interface to the image display. The first valid pixel may refer to a valid pixel in the image to be transmitted that can be transmitted on the target network port after screening and processing.
[0033] Specifically, according to the load range of the target network port (such as bandwidth, transmission rate, etc.) and the display resolution of the image display (such as the number of pixels, resolution size, etc.), the effective pixel range in the image to be transmitted is calculated and determined to obtain the first effective pixel. It should be noted that the first effective pixel is the part of the image that actually needs to be transmitted and displayed, excluding invalid or redundant pixels. By accurately calculating the effective pixel range, unnecessary data transmission can be reduced, transmission efficiency can be improved, and the bandwidth requirements for the target network port can be reduced.
[0034] S120. Based on the cabinet distribution information in the target network port, the pixel carrying area of the target network port is divided to determine a plurality of effective pixel carrying areas corresponding to the target network port, wherein each cabinet in the target network port corresponds to a partial display area in the image display.
[0035] Among them, the cabinet distribution information may refer to the distribution and configuration of each cabinet in the logical or physical structure inside or related to the target network port. The pixel carrying area may refer to the total area where the target network port can carry or transmit pixel data. The effective pixel carrying area may refer to the effective part actually used for image display or data transmission within the pixel carrying area, and this area is a subset of the pixel carrying area. The cabinet may refer to a logical division or physical component used to describe a certain structure or functional area inside or associated with the target network port, that is, each cabinet corresponds to a part of the display area in the image display.
[0036] Specifically, based on the cabinet distribution information in the target network port (such as the number, location, size, etc. of the cabinets), the pixel load area of the target network port is divided into multiple sub-areas. Each cabinet corresponds to a part of the display area in the image display, thereby ensuring that each cabinet is responsible for transmitting and displaying the image data of a specific area. By dividing the pixel load area, the transmission and display of image data can be managed more flexibly. This helps to avoid data congestion and transmission delays, and improve the stability and reliability of image transmission.
[0037] Exemplarily, S120 may include: determining the relative position relationship between each box in the target network port based on the box distribution information in the target network port; determining at least one local pixel carrying area composed of multiple adjacent boxes in the target network port and the relative position relationship between each box in the local pixel carrying area based on the relative position relationship; based on the relative position relationship between each box in the local pixel carrying area, horizontally dividing each local pixel carrying area to determine multiple effective pixel carrying areas.
[0038] The relative position relationship may refer to the spatial arrangement and relative position relationship between the boxes inside the target network port. The local pixel carrying area may refer to an area inside the target network port that is composed of multiple adjacent boxes and is used to carry and transmit image data.
[0039] Specifically, the cabinet distribution information in the target network port is collected, including the number, position, size, etc. of the cabinets. Using this information, a spatial distribution model of the cabinets in the target network port is constructed. In the model, the relative position relationship of each cabinet is determined, including the relative distance and direction between them, which provides accurate cabinet position information for subsequent steps. According to the relative position relationship of the cabinets, adjacent cabinets are combined into local pixel carrying areas. In each local pixel carrying area, the relative position relationship between the cabinets is further determined, and the cabinet layout in each local pixel carrying area is clarified, which provides a basis for subsequent horizontal division. In each local pixel carrying area, horizontal division is performed according to the relative position relationship of the cabinets and the carrying capacity of the target network port. When dividing, ensure that each effective pixel carrying area contains a certain number of cabinets, and the relative position relationship between these cabinets remains unchanged. According to the division result, the specific position and size of each effective pixel carrying area are determined. Through horizontal division, the local pixel carrying area is further refined into multiple effective pixel carrying areas, which improves the flexibility and efficiency of data transmission.
[0040] For example, Figure 2 As shown in the figure, a single network port in the sending card can carry 10 256x256 boxes, with a total effective pixel count of 655360, and the entire network port occupies a canvas size of 1920x1080, which has long exceeded the network port load range under normal load conditions. The canvas can refer to the size limit of the virtual or physical surface used to display image or video content, specifically the maximum resolution that can be achieved by images transmitted through the network interface (network port), that is, 1920x1080. Figure 2In the high-performance partitioning load solution of this embodiment, the network port only sends valid pixels to the cabinet. Although the occupied canvas size is 1920x1080, the actual pixels are still 655360, so it will not be overloaded. The cabinet can display its corresponding image normally, and can meet customer needs without adding or replacing machines, thereby increasing product competitiveness.
[0041] S130. Divide the first effective pixel points based on the effective pixel carrying area, and determine the second effective pixel points corresponding to each effective pixel carrying area.
[0042] The second effective pixel point may refer to a pixel point that is finally determined and allocated to each effective pixel carrying area after a series of division and determination steps.
[0043] Specifically, in the divided pixel carrying area, the second effective pixel points corresponding to each area are further determined. These second effective pixel points are subdivided from the first effective pixel points and correspond to each pixel carrying area one by one. By subdividing the effective pixel points, the transmission and display of image data can be controlled more accurately. This helps to ensure the accuracy and integrity of the image data and improve the image quality.
[0044] Exemplarily, S130 may include: determining a display area of the effective pixel carrying area in the image display based on the effective pixel carrying area; dividing the first effective pixel points based on the display area of the effective pixel carrying area in the image display, and determining a second effective pixel point corresponding to each effective pixel carrying area.
[0045] The display area may refer to an actual display range or area corresponding to the loading area of each effective pixel on the image display.
[0046] Specifically, each effective pixel carrying area is mapped to the physical or logical coordinate system of the image display. This usually involves converting the boundary coordinates of the carrying area into pixel coordinates on the display. Based on the mapping results, the display area of each effective pixel carrying area on the image display is determined. This area should correspond to the actual display range of the carrying area on the display. By accurately mapping and determining the display area, the correct display of each effective pixel carrying area on the image display can be ensured. The first effective pixel point is assigned to each effective pixel carrying area, and the second effective pixel point corresponding to each effective pixel carrying area is determined based on the division result. These pixel points should be image data points that match the display area of the carrying area after division. By accurately dividing and determining the second effective pixel point, it can be ensured that each effective pixel carrying area can correctly display the image data on the image display, thereby improving the display quality.
[0047] S140: Transmit each second effective pixel point to an effective pixel carrying area corresponding to the second effective pixel point, so that the target network port transmits the second effective pixel point to the image display for display.
[0048] Specifically, each second effective pixel is transmitted to the corresponding effective pixel carrying area by using the transmission capacity of the target network port. By accurately transmitting each second effective pixel, it can be ensured that the image data can accurately reach the specified position on the image display. This helps to avoid image distortion, misalignment and other problems, and improve the image display effect.
[0049] Exemplarily, S140 may include: dividing the second effective pixel points corresponding to each effective pixel carrying area into rows to obtain multiple data packets corresponding to each effective pixel carrying area; marking the data packets based on the starting address and ending address corresponding to each effective pixel carrying area, and transmitting the marked data packets to the corresponding effective pixel carrying area.
[0050] Specifically, according to the determined division method, the second effective pixel point in each effective pixel carrying area is divided row by row to form multiple data packets. Each data packet contains a certain number of pixel point data, which are usually arranged in a certain order (such as from left to right). According to the position and size of each effective pixel carrying area in the target display area, the starting address and ending address corresponding to each data packet are determined. These addresses are usually used to identify the target position and range of the data packet during the transmission process. Add marking information to the head or tail of each data packet, including the starting address, the ending address, and possible checksums and other information. These marking information is used to identify the target position and range of the data packet during the transmission process, and to ensure the integrity and accuracy of the data. And the marked data packet is transmitted to the corresponding effective pixel carrying area. The marking information can help the transmission system more accurately identify the target position and range of the data packet, thereby optimizing the transmission path and reducing unnecessary transmission overhead.
[0051] The technical solution of the embodiment of the present invention can reduce unnecessary data transmission, improve transmission efficiency, and reduce the bandwidth requirements of the target network port by determining the first effective pixel point in the image to be transmitted based on the load range of the target network port to be optimized and the display resolution of the image display. Based on the box distribution information in the target network port, the pixel load area of the target network port is divided to determine multiple effective pixel load areas corresponding to the target network port, wherein each box in the target network port corresponds to a part of the display area in the image display, which can manage the transmission and display of image data more flexibly, thereby helping to avoid data congestion and transmission delay, and improve the stability and reliability of image transmission. Based on the effective pixel load area, the first effective pixel point is divided to determine the second effective pixel point corresponding to each effective pixel load area, which can more accurately control the transmission and display of image data. Each second effective pixel point is transmitted to the effective pixel load area corresponding to the second effective pixel point, so that the target network port transmits the second effective pixel point to the image display for display, which can ensure that the image data can accurately reach the specified position on the image display. By accurately calculating the effective pixel range and dividing the pixel loading area, invalid pixels can be effectively avoided, thereby reducing unnecessary data transmission and improving transmission efficiency. The optimized network port loading solution can more efficiently utilize the bandwidth resources of the target network port, reduce bandwidth requirements, and more flexibly manage the transmission and display of image data, avoid data congestion and transmission delays, and improve the stability and reliability of image transmission.
[0052] Embodiment 2
[0053] Figure 3 This is a flow chart of a network port load optimization method provided in Embodiment 2 of the present invention. Based on the above embodiments, this embodiment optimizes the step of "determining the first valid pixel point in the image to be transmitted based on the load range of the target network port to be optimized and the display resolution of the image display". The explanations of the terms that are the same or corresponding to the above embodiments are not repeated here.
[0054] See also Figure 3 Another network port load optimization method provided in this embodiment specifically includes the following steps:
[0055] S210: Determine the candidate pixel points corresponding to the image to be transmitted and the number of the candidate pixel points based on the resolution of the image display.
[0056] The pixels to be selected may refer to a set of pixels extracted from the original image and prepared for subsequent transmission and processing.
[0057] Specifically, according to the resolution of the display, the size of the image to be transmitted can be determined. This usually involves matching the resolution of the display with the size of the image to ensure that the image can be fully displayed on the display. After determining the size of the image to be transmitted, a set of pixels of corresponding size can be extracted from the original image as the pixels to be selected. These pixels will be used for subsequent transmission and processing. Finally, the number of pixels to be selected needs to be calculated. This usually involves counting the extracted pixel sets to determine the total number of pixels that need to be transmitted. By extracting a set of pixels of corresponding size as the pixels to be selected, unnecessary data transmission and processing overhead can be reduced, and transmission efficiency can be improved.
[0058] S220: Match the number of the to-be-selected pixel points with the load range of the target network port to determine a network port load matching result.
[0059] The network port load matching result may refer to the result obtained by comparing the number of pixels to be selected with the load range of the target network port. This result is used to determine whether the number of pixels to be transmitted exceeds the carrying capacity of the network port.
[0060] Specifically, the number of candidate pixel points is compared with the load range of the target network port to determine whether they match. If the number of candidate pixel points exceeds the load range of the network port, corresponding adjustments need to be made. Based on the comparison results, the network port load matching result is determined. If the match is successful, the subsequent transmission and processing steps can be continued; if the match fails, it is necessary to adjust the size of the image to be transmitted or select another network port for transmission. By comparing the number of candidate pixel points with the load range of the network port, it can be ensured that the amount of data transmitted will not exceed the carrying capacity of the network port, thereby avoiding data loss or transmission failure.
[0061] S230: Determine a first valid pixel to be transmitted based on the network port load matching result and the pixel to be selected.
[0062] Specifically, based on the network port load matching result and the set of candidate pixels, a pixel that meets the transmission requirements is selected as the first valid pixel. This usually involves screening out pixels that meet the network port load range from the set of candidate pixels. By selecting a pixel that meets the transmission requirements as the first valid pixel, it can be ensured that the quality of the transmitted data meets the display requirements or the provisions of the transmission protocol.
[0063] Exemplarily, S230 may include: if the number of the selected pixel points does not exceed the load range of the target network port, then the selected pixel points are used as the first valid pixel points to be transmitted; if the number of the selected pixel points exceeds the load range of the target network port, then the resolution of the image to be transmitted is reduced, and the first valid pixel point to be transmitted is determined from the image to be transmitted after the resolution reduction processing.
[0064] Specifically, if the number of pixels to be selected does not exceed the load range of the target network port, the pixels to be selected can be directly used as the first valid pixels to be transmitted. This means that the image does not need to be processed in any way and can be transmitted directly. If the number of pixels to be selected exceeds the load range of the target network port, the image to be transmitted needs to be processed with a lower resolution. After the resolution is reduced, the number of pixels in the image is recalculated, and a new first valid pixel to be transmitted is determined. By determining whether the number of pixels to be selected exceeds the load range of the network port, network congestion and transmission delays caused by transmitting too much data can be avoided.
[0065] Exemplarily, S230 may further include: if the number of the candidate pixel points exceeds the load range of the target network port, sampling the candidate pixel points according to the load range of the target network port to determine the first valid pixel point to be transmitted.
[0066] Specifically, it is necessary to calculate the ratio of the target network port's load range to the number of pixels to be selected, that is, the sampling rate. Sampling rate = target network port load range / number of pixels to be selected. The sampling rate determines the ratio of pixels to be selected as the first effective pixels. According to the determined sampling rate, select a suitable sampling algorithm to sample the pixels to be selected. After applying the sampling algorithm, the pixels selected from the pixels to be selected are the first effective pixels to be transmitted. Through the sampling algorithm, a smaller number of pixels can be selected from the pixels to be selected as the first effective pixels, thereby reducing the amount of data transmitted.
[0067] S240: Divide the pixel carrying area of the target network port based on the cabinet distribution information in the target network port, and determine a plurality of effective pixel carrying areas corresponding to the target network port.
[0068] S250. Divide the first effective pixel points based on the effective pixel carrying area, and determine the second effective pixel points corresponding to each effective pixel carrying area.
[0069] S260: Transmit each second effective pixel point to an effective pixel carrying area corresponding to the second effective pixel point, so that the target network port transmits the second effective pixel point to the image display for display.
[0070] The technical solution of the embodiment of the present invention helps to ensure that the image to be transmitted matches the resolution of the display by determining the candidate pixel points and the number of the candidate pixel points corresponding to the image to be transmitted based on the resolution of the image display. The number of the candidate pixel points is matched with the load range of the target network port to determine the network port load matching result, which can ensure that the image data can be effectively transmitted on the target network port, avoid data loss or transmission delay, and improve the reliability and stability of the transmission. Based on the network port load matching result and the candidate pixel points, the first valid pixel point to be transmitted is determined, which can ensure that the transmitted image data meets the load requirements of the network port and can maintain the key information and overall structure of the image, thereby improving the transmission efficiency and display effect of the image. By matching the load range of the network port and the number of pixel points of the image, the efficient transmission of the image data on the network port can be ensured, unnecessary transmission delays and data loss can be reduced, and adaptive adjustment can be made according to different display resolutions and network port load ranges, thereby enhancing the compatibility and flexibility of the system.
[0071] Embodiment 3
[0072] Figure 4 This is a schematic diagram of the structure of a network port load optimization device provided by Embodiment 3 of the present invention. Figure 4 As shown, the device includes: a pixel point determination module 310, a load area determination module 320, a pixel point division module 330 and a pixel point transmission module 340.
[0073] The pixel point determination module 310 is used to determine the first valid pixel point in the image to be transmitted based on the load range of the target network port to be optimized and the display resolution of the image display;
[0074] A loading area determination module 320 is used to divide the pixel loading area of the target network port based on the cabinet distribution information in the target network port, and determine a plurality of effective pixel loading areas corresponding to the target network port, wherein each cabinet in the target network port corresponds to a part of the display area in the image display;
[0075] A pixel point division module 330, configured to divide the first effective pixel points based on the effective pixel carrying area, and determine the second effective pixel points corresponding to each effective pixel carrying area;
[0076] The pixel point transmission module 340 is used to transmit each second effective pixel point to the effective pixel carrying area corresponding to the second effective pixel point, so that the target network port transmits the second effective pixel point to the image display for display.
[0077] The technical solution of this embodiment, by determining the first effective pixel point in the image to be transmitted based on the load range of the target network port to be optimized and the display resolution of the image display, can reduce unnecessary data transmission, improve transmission efficiency, and reduce the bandwidth requirements of the target network port. Based on the box distribution information in the target network port, the pixel load area of the target network port is divided to determine multiple effective pixel load areas corresponding to the target network port, wherein each box in the target network port corresponds to a part of the display area in the image display, which can manage the transmission and display of image data more flexibly, thereby helping to avoid data congestion and transmission delay, and improve the stability and reliability of image transmission. Based on the effective pixel load area, the first effective pixel point is divided to determine the second effective pixel point corresponding to each effective pixel load area, which can more accurately control the transmission and display of image data. Each second effective pixel point is transmitted to the effective pixel load area corresponding to the second effective pixel point, so that the target network port transmits the second effective pixel point to the image display for display, which can ensure that the image data can accurately reach the specified position on the image display. By accurately calculating the effective pixel range and dividing the pixel loading area, invalid pixels can be effectively avoided, thereby reducing unnecessary data transmission and improving transmission efficiency. The optimized network port loading solution can more efficiently utilize the bandwidth resources of the target network port, reduce bandwidth requirements, and more flexibly manage the transmission and display of image data, avoid data congestion and transmission delays, and improve the stability and reliability of image transmission.
[0078] Optionally, the pixel determination module 310 includes:
[0079] A first pixel point determination unit, used to determine the candidate pixel points corresponding to the image to be transmitted and the number of the candidate pixel points based on the resolution of the image display;
[0080] A load matching unit, used to match the number of the to-be-selected pixel points with the load range of the target network port, and determine the network port load matching result;
[0081] The second pixel point determination unit is used to determine a first valid pixel point to be transmitted based on the network port load matching result and the pixel point to be selected.
[0082] Optionally, the second pixel point determination unit is specifically used to: if the number of the selected pixel points does not exceed the load range of the target network port, then the selected pixel points are used as the first valid pixel points to be transmitted; if the number of the selected pixel points exceeds the load range of the target network port, then the resolution of the image to be transmitted is reduced, and the first valid pixel point to be transmitted is determined from the image to be transmitted after the resolution reduction processing.
[0083] Optionally, the second pixel point determination unit is further specifically used to: if the number of the candidate pixel points exceeds the load range of the target network port, sample the candidate pixel points according to the load range of the target network port to determine the first valid pixel point to be transmitted.
[0084] Optionally, the load area determination module 320 is specifically used to: determine the relative position relationship between each box in the target network port based on the box distribution information in the target network port; determine at least one local pixel load area composed of multiple adjacent boxes in the target network port and the relative position relationship between each box in the local pixel load area based on the relative position relationship; and horizontally divide each local pixel load area based on the relative position relationship between each box in the local pixel load area to determine multiple effective pixel load areas.
[0085] Optionally, the pixel point division module 330 is specifically used to: determine the display area of the effective pixel carrying area in the image display based on the effective pixel carrying area; divide the first effective pixel points based on the display area of the effective pixel carrying area in the image display, and determine the second effective pixel points corresponding to each effective pixel carrying area.
[0086] Optionally, the pixel point transmission module 340 is specifically used to: divide the second effective pixel points corresponding to each effective pixel carrying area into rows to obtain multiple data packets corresponding to each effective pixel carrying area; mark the data packets based on the starting address and ending address corresponding to each effective pixel carrying area, and transmit the marked data packets to the corresponding effective pixel carrying area.
[0087] The network port load optimization device provided in the embodiment of the present invention can execute the network port load optimization method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0088] Figure 5 A schematic diagram of the structure of an electronic device 12 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as desktop computers, workstations, servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.
[0089] like Figure 5As shown, the electronic device 12 is in the form of a general purpose computing device. The components of the electronic device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, and a bus 18 that connects various system components (including the system memory 28 and the processing unit 16).
[0090] Bus 18 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor or a local bus using any of a variety of bus architectures. By way of example, these architectures include, but are not limited to, an Industry Standard Architecture (ISA) bus, a Micro Channel Architecture (MAC) bus, an Enhanced ISA bus, a Video Electronics Standards Association (VESA) local bus, and a Peripheral Component Interconnect (PCI) bus.
[0091] The electronic device 12 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by the electronic device 12, including volatile and non-volatile media, removable and non-removable media.
[0092] The system memory 28 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 30 and / or cache memory 32. The electronic device 12 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, the storage system 34 may be used to read and write non-removable, non-volatile magnetic media ( Figure 5 not shown, usually called a "hard drive"). Although Figure 5 Not shown in the figure, a disk drive for reading and writing to a removable non-volatile disk (e.g., a "floppy disk"), and an optical disk drive for reading and writing to a removable non-volatile optical disk (e.g., a CD-ROM, a DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to the bus 18 via one or more data medium interfaces. The system memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to perform the functions of the various embodiments of the present invention.
[0093] A program / utility 40 having a set (at least one) of program modules 42 may be stored, for example, in system memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment. Program modules 42 generally perform the functions and / or methods of the embodiments described herein.
[0094] The electronic device 12 may also communicate with one or more external devices 14 (e.g., keyboards, pointing devices, displays 24, etc.), may communicate with one or more devices that enable a user to interact with the electronic device 12, and / or may communicate with any device that enables the electronic device 12 to communicate with one or more other computing devices (e.g., network cards, modems, etc.). Such communication may be performed via an input / output (I / O) interface 22. Furthermore, the electronic device 12 may also communicate with one or more networks (e.g., local area networks (LANs), wide area networks (WANs), and / or public networks, such as the Internet) via a network adapter 20. As shown, the network adapter 20 communicates with other modules of the electronic device 12 via a bus 18. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the electronic device 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0095] The processing unit 16 executes various functional applications and data processing by running the program stored in the system memory 28, for example, implementing a network port load optimization method provided in an embodiment of the present invention, the method comprising:
[0096] Determine a first valid pixel point in the image to be transmitted based on the load range of the target network port to be optimized and the display resolution of the image display;
[0097] Based on the cabinet distribution information in the target network port, the pixel carrying area of the target network port is divided to determine a plurality of effective pixel carrying areas corresponding to the target network port, wherein each cabinet in the target network port corresponds to a part of the display area in the image display;
[0098] Based on the effective pixel carrying area, the first effective pixel points are divided to determine the second effective pixel points corresponding to each effective pixel carrying area;
[0099] Each second effective pixel point is transmitted to the effective pixel carrying area corresponding to the second effective pixel point, so that the target network port transmits the second effective pixel point to the image display for display.
[0100] Of course, those skilled in the art can understand that the processor can also implement the technical solution of the network port load optimization method provided by any embodiment of the present invention.
[0101] This embodiment provides a computer-readable storage medium, on which a computer program is stored. When the program is executed by a processor, the steps of the network port load optimization method provided in any embodiment of the present invention are implemented. The method includes:
[0102] Determine a first valid pixel point in the image to be transmitted based on the load range of the target network port to be optimized and the display resolution of the image display;
[0103] Based on the cabinet distribution information in the target network port, the pixel carrying area of the target network port is divided to determine a plurality of effective pixel carrying areas corresponding to the target network port, wherein each cabinet in the target network port corresponds to a part of the display area in the image display;
[0104] Based on the effective pixel carrying area, the first effective pixel points are divided to determine the second effective pixel points corresponding to each effective pixel carrying area;
[0105] Each second effective pixel point is transmitted to the effective pixel carrying area corresponding to the second effective pixel point, so that the target network port transmits the second effective pixel point to the image display for display.
[0106] The computer storage medium of the embodiment of the present invention can adopt any combination of one or more computer-readable media. The computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium can be, for example, but not limited to: an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples (non-exhaustive list) of computer-readable storage media include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this document, a computer-readable storage medium can be any tangible medium containing or storing a program, which can be used by an instruction execution system, device or device or used in combination with it.
[0107] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, which carry computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0108] The program code embodied on the computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
[0109] Computer program code for performing the operations of the present invention may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0110] It should be understood by those skilled in the art that the modules or steps of the present invention described above can be implemented by a general-purpose computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, optionally, they can be implemented by a program code executable by a computer device, so that they can be stored in a storage device and executed by the computing device, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.
[0111] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.
Claims
1. A network port load optimization method, characterized in that: include: Determine a first valid pixel point in the image to be transmitted based on the load range of the target network port to be optimized and the display resolution of the image display; Based on the cabinet distribution information in the target network port, the pixel carrying area of the target network port is divided to determine a plurality of effective pixel carrying areas corresponding to the target network port, wherein each cabinet in the target network port corresponds to a part of the display area in the image display; Based on the effective pixel carrying area, the first effective pixel points are divided to determine the second effective pixel points corresponding to each effective pixel carrying area; Each second effective pixel point is transmitted to the effective pixel carrying area corresponding to the second effective pixel point, so that the target network port transmits the second effective pixel point to the image display for display.
2. The method according to claim 1, characterized in that: The determining of the first valid pixel point in the image to be transmitted based on the load range of the target network port to be optimized and the display resolution of the image display comprises: Determining the pixels to be selected and the number of the pixels to be selected corresponding to the image to be transmitted based on the resolution of the image display; Matching the number of the pixels to be selected with the load range of the target network port to determine the network port load matching result; Based on the network port load matching result and the candidate pixel point, a first valid pixel point to be transmitted is determined.
3. The method according to claim 2, characterized in that The determining, based on the network port load matching result and the candidate pixel point, a first valid pixel point to be transmitted includes: If the number of the candidate pixel points does not exceed the load range of the target network port, the candidate pixel points are used as the first valid pixel points to be transmitted; If the number of the pixels to be selected exceeds the carrying range of the target network port, the image to be transmitted is subjected to resolution reduction processing, and a first valid pixel to be transmitted is determined from the image to be transmitted after the resolution reduction processing.
4. The method according to claim 2, characterized in that: The determining of a first valid pixel to be transmitted based on the network port load matching result and the candidate pixel further includes: If the number of the candidate pixels exceeds the load range of the target network port, the candidate pixels are sampled according to the load range of the target network port to determine the first valid pixel to be transmitted.
5. The method according to claim 1, characterized in that The dividing the pixel carrying area of the target network port based on the cabinet distribution information in the target network port to determine a plurality of effective pixel carrying areas corresponding to the target network port includes: Based on the cabinet distribution information in the target network port, determining the relative position relationship between the cabinets in the target network port; Based on the relative position relationship, determining at least one local pixel carrying area composed of a plurality of adjacent boxes in the target network port and a relative position relationship between each box in the local pixel carrying area; Based on the relative positional relationship between the boxes in the local pixel carrying area, each local pixel carrying area is horizontally divided to determine a plurality of effective pixel carrying areas.
6. The method according to claim 1, characterized in that The dividing the first effective pixel points based on the effective pixel carrying area to determine the second effective pixel points corresponding to each effective pixel carrying area includes: Based on the effective pixel carrying area, determining a display area of the effective pixel carrying area in an image display; Based on the display area of the effective pixel carrying area in the image display, the first effective pixel points are divided to determine the second effective pixel points corresponding to each effective pixel carrying area.
7. The method according to claim 1, characterized in that The step of transferring the second effective pixel point corresponding to each effective pixel carrying area to the effective pixel carrying area corresponding to the second effective pixel point comprises: Divide the second effective pixel points corresponding to each effective pixel carrying area according to rows to obtain multiple data packets corresponding to each effective pixel carrying area; Based on the start address and the end address corresponding to each effective pixel carrying area, the data packet is marked, and the marked data packet is transmitted to the corresponding effective pixel carrying area.
8. A network port load optimization device, characterized in that: include: A pixel point determination module, used to determine a first valid pixel point in the image to be transmitted based on the load range of the target network port to be optimized and the display resolution of the image display; A loading area determination module, used to divide the pixel loading area of the target network port based on the cabinet distribution information in the target network port, and determine a plurality of effective pixel loading areas corresponding to the target network port, wherein each cabinet in the target network port corresponds to a part of the display area in the image display; A pixel point division module, used for dividing the first effective pixel points based on the effective pixel carrying area, and determining the second effective pixel points corresponding to each effective pixel carrying area; The pixel point transmission module is used to transmit each second effective pixel point to the effective pixel carrying area corresponding to the second effective pixel point, so that the target network port transmits the second effective pixel point to the image display for display.
9. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the network port load optimization method described in any one of claims 1-7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the network port load optimization method described in any one of claims 1 to 7 when executed.