A multi-source heterogeneous video processing and display device and method for a ship system
Processing multi-source heterogeneous videos through the FPGA+ARM architecture model solves the problem of insufficient multi-source heterogeneous video display capabilities in the existing technology, achieves high-quality and stable multi-window display, and realizes data sharing through network interfaces, reducing requirements for coding equipment.
Patent Information
- Application Number
- CN202211377465.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-04
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2042-11-04
AI Technical Summary
When processing multi-source heterogeneous videos, existing technologies, especially ultra-high-resolution multi-window fusion and overlay display capabilities, are insufficient, affecting display quality and stability, and occupying too many CPU resources, reducing timeliness.
Adopting the FPGA+ARM architecture mode, using the parallel computing and pipeline processing capabilities of FPGA, combined with the low power consumption and high performance characteristics of ARM, it can separately process the mixed overlay display of multiple ultra-high-resolution uncompressed videos and compressed videos to improve the display quality. and stability, and realize data sharing through network interface.
It realizes the mixed overlay display of multiple ultra-high-resolution videos, improves the screen display quality and stability of the display console, ensures strong real-time performance of the video, reduces the need for encoding equipment, and satisfies the graphical interface network data sharing .
Smart Images

Figure CN115733940B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of video data processing, and more specifically, relates to a multi-source heterogeneous video processing and display device and method for a ship system. Background Art
[0002] The shipborne display and control console is a multi-source access device that can access signal sources of optical frequency / radio frequency, satellite communication and analog / digital formats, including various video or media resources such as radar, sonar, infrared, optoelectronics, etc.; the shipborne display and control terminal needs to complete the overlay of graphics and image videos, the transparent processing of the fusion of graphics and radar videos, and the multi-layer and multi-window display of marking layers, mouse layers, etc. according to the requirements of the combat system.
[0003] The same-window display of multi-source heterogeneous videos is generally achieved by using an FPGA embedded platform or by using CPU computing power through software programming. The former not only needs to complete the radar scan conversion function, the separation of the plotting layer and the mouse layer, the transparent fusion processing of graphics and radar video, but also needs to complete the display function of multi-size asynchronous windows. This method is limited by factors such as FPGA logic resources and timing control, and is more used to process low-resolution, small-channel video overlays and window displays. The multi-window fusion overlay display capability of more than 2 ultra-high-resolution multi-source heterogeneous video access seems to be inadequate, seriously affecting the display quality and stability; the latter's computing power is all handled by the CPU, which requires a high computing power and will occupy more CPU resources, which not only weakens the CPU's processing capabilities for other functions, but also reduces the timeliness of multi-window display. Summary of the invention
[0004] In view of the defects of the prior art, the present invention provides a multi-source heterogeneous video processing and display device and method for a ship system. Compared with the traditional scheme, the present invention can not only improve the number of video display channels on the same screen of the display and control console and the display stability, but also achieve the purpose of network data sharing of the graphical interfaces of each display and control console while reducing one encoding device.
[0005] To achieve the above objectives, the present invention provides a multi-source heterogeneous video processing and display device and method for a ship system, the overall idea of which is:
[0006] The FPGA+ARM architecture mode is adopted, which fully utilizes the parallel computing and pipeline processing capabilities of the FPGA, as well as the low power consumption and high performance characteristics of the ARM architecture. It can not only solve the mixed overlay display function of multiple ultra-high-resolution uncompressed FC videos (photoelectric videos and radar videos) and compressed network videos, but also improves the display quality and stability, and can also ensure the strong real-time performance of video display. At the same time, the present invention can also synchronously encode and output the output picture after the fusion and overlay display to the network interface to realize data sharing, or receive the network video stream information through the network interface for decoding and overlaying it on the graphical interface for display. More specifically:
[0007] On the one hand, the present invention provides a multi-source heterogeneous video processing and display device for a ship system, comprising: a protocol unloading unit, a video frame format encapsulation unit, a radar scan conversion unit, a graphic allocation unit, a layer separation unit, a primary fusion and superposition unit, a secondary fusion and superposition unit, a codec unit and a video comprehensive processing unit; wherein the protocol unloading unit, the video frame format encapsulation unit, the radar scan conversion unit, the primary fusion and superposition unit and the layer separation unit are arranged on an FPGA processing module, and the secondary fusion and superposition unit, the codec unit and the video comprehensive processing unit are arranged on an ARM processing module;
[0008] The input end of the protocol unloading unit is connected to the optical fiber channel, and the output end is connected to the video frame format encapsulation unit and the radar scan conversion unit; it is used to parse the FC or 10 Gigabit protocol to obtain radar video data and optoelectronic video data;
[0009] The output end of the video frame format encapsulation unit is connected to the video comprehensive processing unit, which is used to re-encapsulate the optoelectronic video data to obtain the original video layer; the output end of the radar scan conversion unit is connected to a primary fusion superposition unit, which is used to perform multiple modes of scan conversion on the radar video, and perform various window configurations, afterglow functions and PPI trail function configurations to obtain the radar video layer;
[0010] The input end of the graphic distribution unit is connected to the graphic input interface, and the output end is connected to the layer separation unit and the secondary fusion and superposition unit, and is used to process the input video interface signal in parallel, convert one channel into RGB888 color space data and send it to the layer separation unit, and convert one channel into YUV422 color space data and send it to the secondary fusion and superposition unit as the graphic bottom layer; the output end of the layer separation unit is connected to the primary fusion and superposition unit, and is used to perform layer separation processing on the RGB888 color space data, extract the mouse layer and the plotting layer, and discard the sea level layer data to obtain the mouse plotting layer;
[0011] The output end of the primary fusion and superposition unit is connected to the secondary fusion and superposition unit, which is used to fuse and superimpose the radar video layer and the mouse plotting layer to obtain a primary fusion and superposition layer; the output end of the secondary fusion and superposition unit is connected to the video comprehensive processing unit, which is used to fuse and superimpose the graphic bottom layer and the primary fusion and superposition layer again to form a secondary fusion and superposition layer;
[0012] The encoding and decoding unit is externally connected to the Ethernet channel and internally connected to the video integrated processing unit; it is used to receive the video code stream sent from the Ethernet channel, decode it, and send the decoded data to the video integrated processing unit to form a compressed video layer; it is also used to receive the mixed window output video signal sent from the video integrated processing unit, encode it, and send it out through the Ethernet channel;
[0013] The video comprehensive processing unit is used to superimpose and window display the secondary fusion superposition layer, the original video layer and the compressed video layer to form a mixed window output video signal.
[0014] Further preferably, the fiber channel runs the FC protocol based on 4.25G / 8.5G rate, or the 10 Gigabit network based on the Ethernet protocol; if the fiber channel runs the FC protocol, the protocol offload unit supports the FC-AE-ASM protocol; if the fiber channel runs the 10 Gigabit network protocol, the protocol offload unit is compatible with the IEEE802.3ae / ap protocol.
[0015] Further preferably, the RGB color space data adopts the RGB888 format, the color depth of each red, green and blue color is 8 bits, and each pixel is composed of a 24-bit data; the YUV422 color space data is a YUV422 data format obtained by interpolation method after color space transformation in the RGB888 format.
[0016] Further preferably, the method for extracting the mouse layer and the plotting layer by the layer separation unit is:
[0017] According to the color key value set by the host computer, the layer separation unit traverses and judges each RGB888 color value in the RGB888 color space data, and selects the color key value set by the host computer through a lookup table to retain it, thereby obtaining the mouse layer and the drawing layer; the color key value that is not in the lookup table is filled with 0 to make it appear as a black pixel, thereby forming a mouse drawing layer.
[0018] Further preferably, the primary fusion and overlay unit performs pixel value overlay processing according to the principle that the mouse marking layer information is in the upper layer and the radar video layer information is in the lower layer; if at the same pixel point, the pixel value of the mouse marking layer is M, and the pixel value of the radar video layer is N, then the pixel value at the fused pixel point is: P = λM+(1-λ)N, 0≦λ≦1.
[0019] Further preferably, the secondary fusion and superposition unit superimposes the primary fusion overlay layer sent by the primary fusion and superposition unit and the graphic bottom layer sent by the graphic allocation unit in the order of the primary fusion overlay layer on the upper layer and the graphic bottom layer on the lower layer; the superposition rule is that all black pixels in the primary fusion overlay layer are replaced by the pixel values of the graphic bottom layer during the secondary fusion and superposition, while the non-black pixel values remain unchanged, to form a secondary fusion overlay layer.
[0020] Further preferably, the codec unit is used to receive network video stream information, and simultaneously decode up to 9 channels of 1920*1080@30HZ resolution compressed code streams, and send the decoded compressed video layer information to the video integrated processing unit for corresponding window display; at the same time, it is used to receive the picture output by the mixed window, encode it and send it to the Ethernet channel; at the same time, it is used to configure different encoding parameters through the upper computer according to user requirements, and form a compressed video layer during decoding.
[0021] On the other hand, the present invention provides a method for processing and displaying multi-source heterogeneous video of a ship system, comprising the following steps:
[0022] According to the configuration of the fiber channel, FC or 10G protocol is parsed to obtain uncompressed original radar video data and optoelectronic video data;
[0023] Repackage the optoelectronic video data to form the original video layer; perform scan conversion of the radar video in multiple modes, and configure various windows, afterglow function and PPI trail function to form the radar video layer;
[0024] The input video interface signal is processed in parallel, one channel is converted into RGB888 color space data, and the other channel is converted into YUV422 color space data to form the graphics bottom layer;
[0025] The RGB888 color space data is processed by layer separation to extract the mouse layer and the plotting layer, while the sea level layer data is discarded to form the mouse plotting layer;
[0026] The radar video layer and the mouse plotting layer data are fused and superimposed for the first time, with the mouse plotting layer being the upper layer and the radar video layer being the lower layer, to form a fused superimposed layer;
[0027] The bottom layer of the graphic is fused and overlaid with the first fused overlay layer again, with the second fused overlay layer being on the upper layer and the bottom layer of the graphic being on the lower layer, to form a second fused overlay layer after fusion;
[0028] At the same time, it receives compressed network video stream information through the Ethernet channel and decodes it accordingly to form a compressed video layer;
[0029] The secondary fusion overlay layer, the original video layer and the compressed video layer are superimposed and mixed in window display, wherein the secondary fusion overlay layer is always displayed in full screen, while the original video layer and the compressed video layer are displayed in full screen or part of full screen according to the configuration of window size and position information according to the host computer instructions.
[0030] The mixed window output video information is encoded to form a network video stream and sent out through the Ethernet channel.
[0031] Further preferably, the first fusion overlay performs pixel value overlay processing according to the principle that the mapping layer information is in the upper layer and the radar layer information is in the lower layer; if at the same pixel point, the pixel value of the mouse mapping layer is M, and the pixel value of the radar video layer is N, then the pixel value at the pixel point is: P = λM+(1-λ)N, 0≦λ≦1.
[0032] Further preferably, the second fusion overlay is performed on the first fusion overlay layer and the bottom layer of the graphic in the order of the first fusion overlay layer on the upper layer and the bottom layer of the graphic on the lower layer; the overlay rule is that all black pixel values in the first fusion overlay layer are replaced by the pixel values of the bottom layer of the graphic during the second fusion overlay; and the non-black pixel values remain unchanged.
[0033] In general, the above technical solution conceived by the present invention has the following advantages compared with the prior art:
[0034] Beneficial effects:
[0035] For the comprehensive display of multi-source heterogeneous videos, the traditional processing methods are unified to use FPGA processing, or to achieve the purpose through software programming through CPU computing power. The former uses FPGA to complete the fusion processing of various graphic layers such as base map, radar video, plotting, mouse and optoelectronic video, and then sends them to the display for display after unified superposition. Although FPGA chips have many advantages such as multiple concurrent processing, pipeline mechanism and flexible customization, with the increase of integrated functions such as ultra-high resolution and multi-channel video parallel processing, its compilation efficiency and resource shortage are revealed. The function effect compiled by FPGA is poor and the stability is not enough. The latter's computing power is all handled by the CPU, which requires high computing power and will occupy more CPU resources, which not only weakens the CPU's processing ability for other functions, but also reduces the timeliness of multi-window display.
[0036] The present invention adopts the function separation processing technology of FPGA+ARM architecture. FPGA processes FC or 10G protocol unloading, video frame encapsulation, radar scan conversion, layer separation function, primary fusion superposition and other functions; ARM completes secondary fusion superposition, video encoding and decoding, and video comprehensive processing and other functions. The FPGA+ARM architecture mode is adopted to make full use of the parallel computing and pipeline processing capabilities of FPGA, as well as the low power consumption and high performance characteristics of ARM architecture. It can not only solve the mixed superposition display function of multi-channel ultra-high resolution uncompressed FC video (photoelectric video and radar video) and compressed network video, but also improve the display quality and stability of the display console screen, and can also ensure the strong real-time performance of video display.
[0037] The present invention can also synchronously encode and output the video information after the mixed window output display to the network interface to realize data sharing, or receive the network video stream information through the network interface to decode it and overlay it on the graphical interface for display. Compared with the traditional display console graphical interface sharing function solution, this solution can reduce one encoding and decoding device to meet the purpose of network data sharing. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] Figure 1 is a block diagram of a multi-source heterogeneous video processing and display device for a ship system provided by an embodiment of the present invention;
[0039] Figure 2 is a principle block diagram of a graphics allocation unit provided by an embodiment of the present invention;
[0040] Figure 3 This is a block diagram of the principle of one-step fusion and superposition processing provided by an embodiment of the present invention;
[0041] Figure 4 It is a block diagram of the principle of secondary fusion and superposition processing provided by an embodiment of the present invention;
[0042] Figure 5 It is a block diagram of the video comprehensive processing principle provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0043] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.
[0044] On the one hand, if Figure 1As shown, the present invention provides a multi-source heterogeneous video processing and display device for a ship system, comprising: a protocol unloading unit, a video frame format encapsulation unit, a radar scan conversion unit, a graphic allocation unit, a layer separation unit, a primary fusion and overlay unit, a secondary fusion and overlay unit, a codec unit and a video comprehensive processing unit; wherein the protocol unloading unit, the video frame format encapsulation unit, the radar scan conversion unit, the primary fusion and overlay unit and the layer separation unit are arranged on an FPGA processing module, and the secondary fusion and overlay unit, the codec unit and the video comprehensive processing unit are arranged on an ARM processing module; the device can receive uncompressed original radar video data or infrared / photoelectric video data from an optical fiber channel, and according to local display requirements, complete multi-layer fusion and overlay processing of a mouse layer, a plotting layer, a graphic layer and a radar video layer, as well as multi-source mixed window overlay display of a graphic bottom layer and a primary fusion and overlay layer, an original video layer and a compressed video layer.
[0045] (1) Protocol Offload Unit
[0046] The input of the protocol offload unit is the external fiber channel; as a carrier, the fiber channel can run the FC protocol based on 4.25G / 8.5G rate, or the 10G network based on the Ethernet protocol. These two protocols can be dynamically loaded online according to user needs; the protocol offload unit is a functional unit for communicating with the outside world and is used to run and maintain the protocol stack; if the FC protocol is running, it supports the FC-AE-ASM protocol and complies with the FC-FS and GJB 6411-2008 protocol specifications; if the 10G network protocol is running, it is compatible with the IEEE802.3ae / ap protocol and complies with the 10GBASE-SR protocol specification;
[0047] More specifically:
[0048] The fiber channel transmits a mixed video of multiple uncompressed original radar videos and multiple optoelectronic videos. Radar videos and optoelectronic videos are distinguished by different "groups", and multiple radar videos or multiple optoelectronic videos are distinguished by different "marker bits"; for the FC protocol, different SIDs are used to distinguish radar videos and optoelectronic videos; and for the 10 Gigabit network, different multicast addresses are used to distinguish radar videos and optoelectronic videos; the protocol unloading unit parses the FC / 10 Gigabit protocol, obtains the payload video data, distributes the radar video data to the radar scan conversion unit, and distributes the optoelectronic video data to the video frame format encapsulation unit; the description of various video frame formats is shown in Table 1;
[0049] Table 1
[0050]
[0051] (2) Video frame format encapsulation unit
[0052] The input end of the video frame format encapsulation unit is connected to the protocol unloading unit, and the output end is connected to the video processing unit; it is used to receive the optoelectronic video data transmitted by the protocol unloading unit, and re-encapsulate the optoelectronic video data so that its frame format meets the BT1120 video frame format, that is, it meets the data structure specified by ITU-R (International Telecommunication Union Radiocommunication Department), and forms an original video layer; in this embodiment, taking 3840*2160 resolution as an example, the format of the encapsulated data is shown in Table 2:
[0053] Table 2
[0054]
[0055] (3) Radar scan conversion unit
[0056] The input end of the radar scan conversion unit is connected to the protocol unloading unit, and the output end is connected to the primary fusion superposition unit, which is used to scan and convert the received radar video in multiple modes such as P display, B display and E display, and perform various window configurations such as PPI window, AR window, small window, as well as afterglow function and PPI trail function configuration, etc., at this time, a radar video layer is formed;
[0057] More specifically: the radar scan conversion unit first completes the scan conversion of the radar video signal, and pre-processes the size, position information, afterglow, PPI trail and occlusion relationship of the radar video window according to the configuration information of the host computer;
[0058] (4) Graphics Allocation Unit
[0059] The input end of the graphic distribution unit is connected to the graphic input interface, and the output end is connected to the layer separation unit and the secondary fusion and superposition unit, and is used to parallelize the input differential serial video signal, convert it into RGB888 color value and send it to the layer separation unit, and convert it into YUV422 color value and send it to the secondary fusion and superposition unit;
[0060] More specifically, the data converted into the RGB color space adopts the RGB888 format, with each color of red, green and blue having a color depth of 8 bits, and each pixel consisting of a 24-bit data; the data converted into the BT1120 data format is a YUV422 data format obtained by color space transformation of RGB888 and interpolation; in this embodiment, the graphics allocation unit needs to allocate different video data formats according to the actual needs of each back-end unit, and the data sent to the layer separation unit is in RGB888 format, each pixel value cannot have data loss, and can fully represent the three color values of each pixel; the data sent to the secondary fusion and overlay unit is in YUV222 format, which meets the format requirements of the secondary fusion and overlay unit for the received data. Although the color feature values of the two data formats of RGB888 and YUV222 are different, they represent the same graphic signal; in this embodiment, the principle block diagram of the graphics allocation unit is as shown Figure 2 .
[0061] (5) Layer separation unit
[0062] The input end of the layer separation unit is connected to the graphic allocation unit, and the output end is connected to the primary fusion and superposition unit, so as to perform layer separation processing on the graphics input by the graphic allocation unit, extract the mouse layer and the marking layer, and discard the sea layer data, so as to form the mouse marking layer; more specifically, the layer separation unit receives RGB888 color space data, which contains multiple layers of information such as the mouse layer, the marking layer and the sea layer, and each layer information is identified by a different color space set, wherein the mouse layer and the marking layer need to be extracted, and the sea layer data needs to be discarded; according to the color key value set by the host computer, the layer separation unit traverses and judges each RGB888 color value, and through the lookup table, selects the color key value set by the host computer for retention, and obtains the mouse layer and the marking layer; the color value not in the lookup table is filled with 0 data to make it appear as a "black" pixel, so as to form the mouse marking layer. After processing, the output of the layer separation unit only retains the mouse layer and the plotting layer, and their pixel position information and color values are not changed. In this way, the entire frame of the graphic layer only retains the mouse and plotting information, and the rest is displayed as "black" data (black layer). If the processed graphic layer of this frame is sent to the display unit for display, it will be displayed as only the mouse and plotting information displayed on the entire black screen; taking a row of data in the 3840*2160 resolution image used in this embodiment, the data before processing is shown in Table 3;
[0063] Table 3
[0064] Column number 1 2 3 4 5 6 … 3837 3838 3839 3840 data RGB RGB Chroma Key RGB RGB RGB … RGB Chroma Key RGB RGB
[0065] The processed data are shown in Table 4;
[0066] Table 4
[0067] Column number 1 2 3 4 5 6 … 3837 3838 3839 3840 data 0 0 Chroma Key 0 0 0 … 0 Chroma Key 0 0
[0068] (6) One-time fusion superposition unit
[0069] The input of the primary fusion and superposition unit is connected to the radar scan conversion unit and the layer separation unit, and the output end is connected to the secondary fusion and superposition unit, which is used for data superposition and fusion of the radar video layer and the mouse plotting layer;
[0070] More specifically, the primary fusion and superposition unit receives the radar video layer sent from the radar scan conversion unit and the mouse plotting layer data sent from the layer separation unit; the primary fusion and superposition unit performs superposition processing according to the principle that the mouse plotting layer information is in the upper layer and the radar video layer information is in the lower layer; since the resolution of the radar video layer is consistent with that of the mouse plotting layer, each pixel value of the two needs to be processed accordingly during the superposition process;
[0071] More specifically, the primary fusion and overlay unit respectively receives the radar video layer transmitted by the radar scan conversion unit and the mouse drawing layer sent by the layer separation unit, and performs data traversal and judgment processing on each pixel of the two layers of graphics. At the same pixel point, if the value of the mouse drawing layer is M and the value of the radar video layer is N, then the value P of this pixel is calculated according to this formula: P = λM+(1-λ)N, 0≦λ≦1. The processed complete data frame is called a primary fusion and overlay layer; the value of λ can be configured according to the host computer instructions in order to achieve different effects after data fusion; in this embodiment, the primary fusion and overlay processing flow is as follows: Figure 3 As shown;
[0072] If the radar video layer data is represented as RD, the primary fusion overlay layer data after the overlay fusion process can be represented as shown in Table 5;
[0073] Table 5
[0074] Column number 1 2 3 4 5 6 … 3837 3838 3839 3840 data 0 0 Chroma Key 0 0 RD … 0 Chroma Key RD 0
[0075] (7) Secondary fusion superposition unit
[0076] The input end of the secondary fusion and overlay unit is connected to the primary fusion and overlay unit and the graphics allocation unit, and the output end is connected to the video comprehensive processing unit, so as to fuse and overlay the graphics bottom layer and the primary fusion and overlay layer again; more specifically, the layer sent by the primary fusion and overlay unit is of high priority and needs to be placed on the upper layer of the overlay layer. The video information contained in the primary fusion and overlay layer includes a mouse layer, a plotting layer, a radar layer and a "black layer", which are arranged in layers from top to bottom; the graphics bottom layer sent by the graphics allocation unit will be used as the bottom layer of the video output graphics, so during the secondary fusion and overlay, the primary fusion and overlay layer will be overlaid on the graphics bottom layer; since the "black layer" in the primary fusion and overlay layer has obvious characteristics, it is composed entirely of data 0, so during the overlay processing, all pixel values of the "black layer" can be replaced by pixel values of the graphics bottom layer according to this characteristic value, and the pixel values of non-"black layer" remain unchanged, and the fused data will be expressed as all layers except the "black layer" in the primary fusion and overlay layer are placed on the upper layer, and the "black layer" is replaced by the graphics bottom layer and placed on the bottom layer; in this embodiment, the secondary fusion and overlay processing flow is as follows Figure 4 As shown;
[0077] In this embodiment, if the underlying data of the graphics is represented as PD, the data after the secondary fusion and superposition processing can be represented as shown in Table 6;
[0078] Table 6
[0079] Column number 1 2 3 4 5 6 … 3837 3838 3839 3840 data PD PD Chroma Key PD PD RD … PD Chroma Key RD PD
[0080] Further preferably, when the video comprehensive processing unit displays, since the secondary fusion overlay layer contains graphic information such as mouse, plotting, radar video and nautical chart, it is always displayed full screen; while the original video layer and the compressed video layer must configure the window size and position information according to the host computer instructions to display full screen or part of the full screen.
[0081] (8) Codec Unit
[0082] The codec unit is connected to the Ethernet interface externally and the video integrated processing unit internally. It is mainly responsible for receiving the video code stream sent from the Ethernet, decoding it, and then sending the decoded data to the video integrated processing unit; at the same time, it also receives the superimposed display screen information sent from the video integrated processing unit, encodes it and sends it out through the network, at this time forming a compressed video layer;
[0083] The codec unit receives network video stream information, can decode up to 9 channels of 1920*1080@30HZ resolution compressed code streams at the same time, and send the decoded compressed video layer information to the video integrated processing unit for corresponding window display; at the same time, the codec unit can also receive the picture output by the mixed window, encode it and send it to the Ethernet channel. At the same time, the codec unit can configure different encoding parameters through the host computer according to user requirements, such as H.264 / H.265 algorithm, bit rate, frame rate and other information.
[0084] (9) Video integrated processing unit
[0085] The input end of the video comprehensive processing unit is connected to the secondary fusion overlay unit, the video frame format encapsulation unit and the codec unit, and the output end is connected to the display unit. It is used to perform video overlay processing on the received secondary fusion overlay layer, the original video layer and the compressed video layer, and then display them in a mixed window; more specifically, the video comprehensive processing unit outputs the secondary fusion overlay layer as the bottom layer of the graphics, and the output resolution and frame rate are consistent with the input secondary fusion overlay layer; when the video comprehensive processing unit displays, since the secondary overlay layer contains graphic information such as mouse, plotting, radar video and nautical chart, it is always displayed in full screen; while the original video layer and the compressed video layer need to configure the window size and position information according to the host computer instructions to display the full screen or non-full screen.
[0086] The original video layer and the compressed video layer have independent video information. They can adjust their own window positions, sizes, and superposition order as needed. The configured windowed images are superimposed on the graphic bottom layer and sent to the display terminal for display. In order to adjust the display effect, the brightness, chromaticity, and contrast of the output video can be adjusted. In this embodiment, the principle block diagram of the video comprehensive processing unit is as follows: Figure 5 shown.
[0087] On the other hand, the present invention provides a ship system multi-source heterogeneous video processing and display method corresponding to the ship system multi-source heterogeneous video processing and display device, comprising the following steps:
[0088] S1: The protocol unloading unit is used to parse the uncompressed original video payload data sent by the optical fiber channel according to the configured protocol requirements, and send the optoelectronic video data to the video frame format encapsulation unit, and send the radar video data to the radar scan conversion unit;
[0089] S2: encapsulate the optoelectronic video data in BT1120 video frame format using a video frame format encapsulation unit to form an original video layer;
[0090] S3: The radar scan conversion unit performs scan conversion of the received radar video in various modes such as P display, B display and E display, and configures the position and size of various windows such as PPI window and AR window, as well as the afterglow function and PPI trail function to form a radar video layer;
[0091] S4: The graphics distribution unit converts the input graphics signal into a color space, converting one mode into RGB888 mode and another mode into YUV422 mode, thereby forming a graphics bottom layer;
[0092] S5: The layer separation unit extracts the mouse layer and the plotting layer, and discards the sea level layer data to form the mouse plotting layer;
[0093] S6: The primary fusion and superposition unit performs superposition and fusion processing on the two video layer information sent by S3 and S5 to form a primary fusion and superposition layer;
[0094] S7: The secondary fusion and superposition unit performs another superposition and fusion process on the two video layer information sent from S6 and S4 to form a secondary fusion superposition layer;
[0095] S8: The codec unit decodes the received Ethernet channel video stream data to form compressed video layer information and sends it to the video integrated processing unit;
[0096] S9: The video comprehensive processing unit performs video overlay processing on the received secondary fusion overlay layer, the original video layer and the compressed video layer, and then outputs the mixed window for display. The window position, size and overlay order can be adjusted as needed. In order to adjust the display effect, the brightness, chromaticity and contrast of the output video can be adjusted;
[0097] S10: The codec unit receives the mixed window output information, encodes it and sends it to the Ethernet channel. At the same time, the codec unit can configure different encoding parameters through the host computer according to user requirements, such as H.264 / H.265 algorithm, bit rate, frame rate and other information.
[0098] It will be easily understood by those skilled in the art that the above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A multi-source heterogeneous video processing and display device for a ship system, characterized in that: include: A protocol unloading unit, a video frame format encapsulation unit, a radar scan conversion unit, a graphic allocation unit, a layer separation unit, a primary fusion and superposition unit, a secondary fusion and superposition unit, a codec unit and a video comprehensive processing unit; wherein the protocol unloading unit, the video frame format encapsulation unit, the radar scan conversion unit, the primary fusion and superposition unit and the layer separation unit are arranged on the FPGA processing module, and the secondary fusion and superposition unit, the codec unit and the video comprehensive processing unit are arranged on the ARM processing module; The input end of the protocol unloading unit is connected to the optical fiber channel, and the output end is connected to the video frame format encapsulation unit and the radar scan conversion unit; it is used to parse the FC or 10 Gigabit protocol to obtain radar video data and optoelectronic video data; The output end of the video frame format encapsulation unit is connected to the video comprehensive processing unit, which is used to re-encapsulate the optoelectronic video data to obtain the original video layer; the output end of the radar scan conversion unit is connected to a primary fusion superposition unit, which is used to perform multiple modes of scan conversion on the radar video, and perform various window configurations, afterglow functions and PPI trail function configurations to obtain the radar video layer; The input end of the graphic distribution unit is connected to the graphic input interface, and the output end is connected to the layer separation unit and the secondary fusion and superposition unit, which is used to parallelize the input video interface signal, convert it into RGB888 color space data and send it to the layer separation unit, and convert it into YUV422 color space data and send it to the secondary fusion and superposition unit as the graphic bottom layer; the output end of the layer separation unit is connected to the primary fusion and superposition unit, which is used to perform layer separation processing on the RGB888 color space data, extract the mouse layer and the plotting layer, and discard the sea level layer data to obtain the mouse plotting layer; the output end of the primary fusion and superposition unit is connected to the secondary fusion and superposition unit, which is used to fuse and superimpose the radar video layer and the mouse plotting layer to obtain the primary fusion and superposition layer; The output end of the secondary fusion and overlay unit is connected to the video comprehensive processing unit, which is used to fuse and overlay the graphic bottom layer with the primary fusion and overlay layer again to form a secondary fusion and overlay layer; the codec unit is externally connected to the Ethernet channel and internally connected to the video comprehensive processing unit; it is used to receive the video code stream sent by the Ethernet channel for decoding, and send the decoded data to the video comprehensive processing unit to form a compressed video layer; it is also used to receive the mixed window output video signal sent by the video comprehensive processing unit, and encode it and send it out through the Ethernet channel; the video comprehensive processing unit is used to overlay and open a window to display the secondary fusion and overlay layer, the original video layer and the compressed video layer to form a mixed window output video signal; The method for extracting the mouse layer and the plotting layer by the layer separation unit is as follows: According to the color key value set by the host computer, the layer separation unit traverses and judges each RGB888 color value in the RGB888 color space data, and selects the color key value set by the host computer through a lookup table to retain it, thereby obtaining the mouse layer and the drawing layer; the color key value that is not in the lookup table is filled with 0 to make it appear as a black pixel, thereby forming a mouse drawing layer.
2. The multi-source heterogeneous video processing and display device for a ship system according to claim 1, characterized in that: The fiber channel runs on the FC protocol at 4.25G / 8.5G rate, or a 10G network based on the Ethernet protocol; If the Fibre Channel runs the FC protocol, the protocol offload unit supports the FC-AE-ASM protocol; If the Fibre Channel runs the 10 Gigabit Ethernet protocol, the protocol offload unit is compatible with the IEEE802.3ae / ap protocol.
3. The multi-source heterogeneous video processing and display device for a ship system according to claim 1 or 2, characterized in that: The RGB color space data adopts the RGB888 format, the color depth of each color of red, green and blue is 8 bits, and each pixel is composed of a 24-bit data; the YUV422 color space data is a YUV422 data format obtained by color space transformation of the RGB888 format and using the interpolation method.
4. The multi-source heterogeneous video processing and display device for a ship system according to claim 3, characterized in that: The primary fusion overlay unit performs pixel value overlay processing according to the principle that the mouse marking layer information is in the upper layer and the radar video layer information is in the lower layer; if at the same pixel point, the pixel value of the mouse marking layer is M, and the pixel value of the radar video layer is N, then the pixel value at the fused pixel point is: P = λM+(1-λ)N, 0≦λ≦1.
5. The multi-source heterogeneous video processing and display device for a ship system according to claim 4, characterized in that: The secondary fusion and superposition unit superimposes the primary fusion and superposition layer sent by the primary fusion and superposition unit and the bottom layer of the graphics sent by the graphics allocation unit in the order of the primary fusion and superposition layer on the upper layer and the bottom layer of the graphics on the lower layer; The overlay rule is that all black pixels in the first fusion overlay layer are replaced by the pixel values of the bottom layer of the graphic during the second fusion overlay, while the non-black pixel values remain unchanged, forming a second fusion overlay layer.
6. The multi-source heterogeneous video processing and display device for a ship system according to claim 1 or 2, characterized in that: The codec unit is used to receive network video stream information, decode up to 9 channels of 1920*1080@30HZ resolution compressed code streams, and send the decoded compressed video layer information to the video integrated processing unit for corresponding window display; it is also used to receive the picture output by the mixed window, encode it and send it to the Ethernet channel; it is also used to configure different encoding parameters through the host computer according to user requirements to form a compressed video layer during decoding.
7. A method for processing and displaying multi-source heterogeneous video of a ship system, characterized in that: The following steps are involved: According to the configuration of the fiber channel, FC or 10G protocol is parsed to obtain uncompressed original radar video data and optoelectronic video data; Repackage the optoelectronic video data to form the original video layer; perform scan conversion of the radar video in multiple modes, and configure various windows, afterglow function and PPI trail function to form the radar video layer; The input video interface signal is processed in parallel, one channel is converted into RGB888 color space data, and the other channel is converted into YUV422 color space data to form the graphics bottom layer; The RGB888 color space data is processed by layer separation to extract the mouse layer and the plotting layer, while the sea level layer data is discarded to form the mouse plotting layer; The radar video layer and the mouse plotting layer data are fused and superimposed for the first time, with the mouse plotting layer being the upper layer and the radar video layer being the lower layer, to form a fused superimposed layer; The bottom layer of the graphic is fused and overlaid with the first fused overlay layer again, with the second fused overlay layer being on the upper layer and the bottom layer of the graphic being on the lower layer, to form a second fused overlay layer after fusion; At the same time, it receives compressed network video stream information through the Ethernet channel and decodes it accordingly to form a compressed video layer; The secondary fusion overlay layer, the original video layer and the compressed video layer are overlaid and mixed with windows for display, wherein the secondary fusion overlay layer is always displayed in full screen, while the original video layer and the compressed video layer are displayed in full screen or in part according to the configuration of the window size and position information according to the host computer instruction; Encode the mixed window output video information to form a network video stream and send it through the Ethernet channel; The method for extracting the mouse layer and the plotting layer by the layer separation unit is as follows: According to the color key value set by the host computer, the layer separation unit traverses and judges each RGB888 color value in the RGB888 color space data, and selects the color key value set by the host computer through a lookup table to retain it, thereby obtaining the mouse layer and the drawing layer; the color key value that is not in the lookup table is filled with 0 to make it appear as a black pixel, thereby forming a mouse drawing layer.
8. The method for processing and displaying multi-source heterogeneous video of a ship system according to claim 7, characterized in that: The first fusion overlay is performed according to the principle that the mapping layer information is on the upper layer and the radar layer information is on the lower layer to perform pixel value overlay processing; If at the same pixel point, the pixel value of the mouse plotting layer is M, and the pixel value of the radar video layer is N, then the pixel value at the pixel point is: P=λM+(1-λ)N, 0≦λ≦1.
9. The method for processing and displaying multi-source heterogeneous video of a ship system according to claim 7, characterized in that: The second fusion overlay is performed on the first fusion overlay layer and the bottom layer of the graphics in the order of the first fusion overlay layer on the upper layer and the bottom layer of the graphics on the lower layer; The overlay rule is that all black pixel values in the first fusion overlay layer are replaced by the pixel values of the bottom layer of the graphic during the second fusion overlay; while the non-black pixel values remain unchanged.
