A video acquisition and output device and method for converting a CML interface to an SDI interface
By designing a video capture and output device that converts the CML interface to the SDI interface, and using FPGA chips and other components for data decoding and synchronization, the problem that the CML interface video data cannot be directly displayed is solved, real-time display and processing is achieved, and the application scenarios are expanded. Reduces product size and power consumption.
Patent Information
- Application Number
- CN202311036957.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-17
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2043-08-17
AI Technical Summary
The video data of the CML interface cannot be displayed directly on the monitor, and it lacks compatibility to convert to the commonly used SDI interface, which limits its application scenarios.
A video capture and output device that converts CML interface to SDI interface is designed. It uses FPGA chip, DDR3 external memory, power management unit, two CML decoding chips and an SDI encoding chip. Through data collection, bit width conversion, command analysis and pre-processing, The processing module implements decoding, synchronization and protocol encoding of video data, and finally outputs it to the SDI interface.
It realizes real-time display and processing of CML video data, supports HD-SDI and 3G-SDI, has a wide range of application scenarios, and saves product size and power consumption.
Smart Images

Figure CN117061691B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of digital video signals, and in particular to a video acquisition and output device and method for converting a CML interface to an SDI interface. Background Art
[0002] CML (Circuit Mode Logic) is a current mode logic that mainly relies on current drive and is the simplest type of high-speed data transmission interface. The output circuit form of CML is a single differential pair for transmission and supports a higher data transmission rate, so it is widely used. SDI (Serial digital interface) is a digital component serial interface, which is divided into standard definition SD-SDI, high definition standard HD-SDI and full high definition standard 3G-SDI according to the rate, with corresponding rates of 270Mb / s, 1.485Gb / s and 2.97Gb / s respectively; it has the advantages of ease of use, non-compression, high definition and real-time.
[0003] The circuit form of the CML interface is a differential pair, which is the simplest compared to other high-speed data transmission interface circuits. It enables the product to have the advantages of high-speed data acquisition, low power consumption and miniaturization. The SDI interface is easy to use and universal. The combination of the two fills the gap in the field of interface conversion applications. Summary of the invention
[0004] The object of the present invention is to provide a video acquisition and output device and method for converting a CML interface to an SDI interface, so as to solve the problems in the background technology.
[0005] In order to solve the above technical problems, the present invention provides a video acquisition and output device and method for converting a CML interface to an SDI interface, comprising an FPGA chip, a DDR3 external memory, a power management unit, two CML decoding chips, an SDI encoding chip, and a serial communication chip;
[0006] The CML decoding chip is connected to the CML interface, and the SDI encoding chip is connected to the SDI interface; the FPGA chip is connected to a video codec chip, and the video codec chip implements configurations of different functions, including a video codec chip enable signal, a reference clock signal, a reset signal, and other configurable signals;
[0007] The two channels of CML video data select different processing methods according to the detection results of the data acquisition module and the serial port instructions, including: cutting the two channels of input CML video data to achieve video splicing output; reconfiguring the external memory address and length to achieve separate display of the two channels of video;
[0008] The input interface data enters the FPGA chip and first passes through the data acquisition module, whose functions include driver configuration, data decoding, video detection, and parameter acquisition; then passes through the data bit width conversion module to achieve data bit width conversion and clock internal synchronization; then goes to the instruction parsing and preprocessing module to obtain the video signal output mode, video output format instructions and perform corresponding instruction preprocessing, and finally performs data caching and protocol encoding to achieve video output from the SDI interface.
[0009] In one implementation, the serial port instruction controls the change of the video output resolution and frame rate, and the clock management unit inside the FPGA chip generates the video output pixel clock.
[0010] In one implementation, the CML interface to SDI interface video capture and output device supports HD-SDI and 3G-SDI.
[0011] A video acquisition and output method for converting a CML interface to an SDI interface, characterized by comprising:
[0012] Step 1: Data acquisition module; the FPGA chip drives and configures the CML decoding chip, and receives the parallel data output by the CML decoding chip; according to the camera's self-defined protocol, the data is decoded to restore the image lines, fields and data; then the image line and field signals are effectively detected to determine whether the video data is received normally, and the feedback is sent to the device monitoring point;
[0013] Step 1.1, when the video detection module finds that there is no external video input, the device outputs a fixed analog source image and feeds back to the device monitoring point to inform that there is no external input and check whether the external video signal is normal;
[0014] Step 1.2: When the video detection module finds that there is video input, it decodes the received video data, obtains line and field synchronization and data signals, and obtains the effective resolution, line blanking length and frame rate parameters of the video image;
[0015] Step 2: Data bit width conversion module: The data bit width collected in the data acquisition module is different from the pixel bit width of the actual image, and data bit width conversion and line signal widening processing are performed;
[0016] Step 2.1, the data bit width is converted by adopting the method of line buffer and clock equal-proportional frequency multiplication. The original clock and the conversion clock are multiplied according to the ratio of the data bit width, so as to realize the conversion of the data bit width; the conversion clock is generated by the internal PLL, and the data is also synchronized with the clock while the bit width is converted;
[0017] Step 3: Instruction parsing and preprocessing module, the instruction parsing module completes the reception and parsing of serial port instructions and obtains the corresponding instructions; the preprocessing module determines the mode to be processed according to the obtained instructions;
[0018] Step 3.1, when the command parsing module receives the external serial port packet, it determines the frame header and checksum, and then parses the command word in the packet; the preprocessing module performs subsequent operations according to the agreed protocol: whether to crop the video image, the video output mode and the video output format;
[0019] Step 4: The data cache and video output module caches the pre-processed video data to an external memory, and reads and outputs the data according to the video format parameters output by the processing module;
[0020] Step 4.1, data caching to achieve pre-processed video data frame caching; generate output video line and field signals in SDI standard format, fill two channels of CML video data in different ways according to the video format parameters output by the pre-processing module, respectively, crop and splice the two channels of video, and display the two channels in the center, generate image data that meets the instruction requirements, and finally output through the SDI interface
[0021] In one implementation, in the data acquisition module, the main task of the driver configuration is to drive the external CML decoding chip and the SDI encoding chip, configure the CML decoding chip TLK1501 and the SDI encoding chip LMH0340; the configuration content is that the FPGA chip sends an enable signal, a reset signal, a reference clock signal and other related control signals; and the driver chip works normally according to the required functions;
[0022] Data decoding is to parse the data according to the protocol inside the FPGA chip to restore the image line, field synchronization signal and video data;
[0023] Video detection is to monitor the status of the analyzed video signal. If the video signal is found to be absent or abnormal, it will be fed back to the monitoring point of the device; at the same time, the chip will be driven and configured again;
[0024] Parameter acquisition is to obtain the resolution and frame rate parameters of the image when there is a normal video signal.
[0025] In one embodiment, the data bit width conversion module realizes the conversion of collected data into pixel data by means of line cache, widens the line blanking to provide capacity for back-end processing, and in order to avoid timing violations caused by signal processing in different clock domains, video data with different clock frequencies will be synchronized to the same clock source to achieve the function of optimizing timing.
[0026] In one embodiment, the instruction parsing and preprocessing module includes serial port signal reception, data packet verification, and command word parsing functions; an external user sends an instruction through the serial port, and the FPGA chip first checks the frame header and checksum of the serial port data packet; based on the result of parsing the command word in the instruction, the video output mode and video output format are determined, and then preprocessing corresponding to the instruction is performed, including image cropping and output video parameter reconfiguration.
[0027] In one embodiment, the data cache and video output module writes the valid video data into the DDR3 external memory for caching; generates the line and field signals of the output image and the read enable signal for reading the valid video data cached in the DDR3 external memory according to the video output mode and the video output format; finally, in the video protocol encoding module, a synchronization code is added and output to the SDI encoding chip.
[0028] The present invention provides a video acquisition and output device and method for converting a CML interface to an SDI interface. The device and method use TI's integrated chip TLK1501 to decode the CML signal, and then parse the image-related signal according to the custom transmission protocol of the CML camera, perform image data processing in the FPGA chip, and output it from the SDI interface. In order to save product volume and reduce power consumption, the FPGA chip of the present invention uses Xilinx Airtex7-100T, and the SDI interface chip uses LMH0340 as the output chip. The present invention mainly has the following advantages: the video of the CML interface cannot be directly displayed on the display, while SDI is a commonly used and standard video interface. The video input by the CML can be viewed in real time using an SDI display, and two CML videos can be displayed simultaneously or two CML videos can be displayed separately through external serial port instructions, which has a wide range of application scenarios. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] Figure 1 A schematic diagram of the principle of a video acquisition and output device for converting a CML interface to an SDI interface provided by the present invention;
[0030] Figure 2 A schematic flow chart of a video acquisition and output method for converting a CML interface to an SDI interface provided by the present invention;
[0031] Figure 3 It is a schematic diagram of the processing flow of the video acquisition module;
[0032] Figure 4 It is a flow chart of the data width conversion module;
[0033] Figure 5 It is a flowchart of the instruction parsing and preprocessing module;
[0034] Figure 6 Schematic diagram of the flow of data cache and video output module. DETAILED DESCRIPTION
[0035] The following is a further detailed description of a CML interface to SDI interface video acquisition and output device and method proposed by the present invention in conjunction with the accompanying drawings and specific embodiments. The advantages and features of the present invention will become clearer according to the following description. It should be noted that the accompanying drawings are all in a very simplified form and are not in precise proportions, and are only used to conveniently and clearly assist in explaining the purpose of the embodiments of the present invention.
[0036] The first embodiment of the present invention provides a video acquisition and output device for converting a CML interface to an SDI interface, and its principle structure is as follows: Figure 1 As shown, it includes FPGA chip, DDR3 external memory, power management unit, two CML decoding chips, one SDI encoding chip, and serial communication chip;
[0037] Connect the CML interface and CML decoding chip as required, and connect the SDI interface and SDI encoding chip as required; the control pins of the video codec chip are all connected to the FPGA chip, which can realize the configuration of different functions, including video codec chip enable signal, reference clock signal, reset signal and other configurable signals.
[0038] The two channels of CML video data will select different processing methods according to the detection results of the video acquisition module and the external serial port communication instructions; for example, the two channels of input CML video data are cropped to achieve video splicing output; the external memory address and length are reconfigured to achieve separate display of the two channels of video.
[0039] The video output resolution and frame rate will be changed according to the external serial communication instructions. The video output pixel clock is generated by the clock management unit inside the FPGA chip, and the output device of the present invention supports HD-SDI and 3G-SDI.
[0040] Based on the video acquisition and output device of the CML interface to the SDI interface of the first embodiment, the video acquisition and output method of the CML interface to the SDI interface is described below, which includes the following steps:
[0041] Step 1: Data acquisition module; the FPGA chip drives and configures the CML decoding chip to receive the parallel data output by the CML decoding chip; according to the camera's custom protocol, the data is decoded to restore the image lines, fields and data; then the image line and field signals are effectively detected to determine whether the video data is received normally, and the feedback is sent to the device monitoring point.
[0042] Step 1.1, when the video detection module finds that there is no external video input, the device outputs a fixed analog source image and feeds back to the device monitoring point to inform that there is no external input and check whether the external video signal is normal;
[0043] Step 1.2: When the video detection module finds that there is video input, it decodes the received video data, obtains line and field synchronization and data signals, and obtains parameters such as the effective resolution, line blanking length and frame rate of the video image.
[0044] Step 2: Data bit width conversion module; the data bit width collected in the data acquisition module is different from the pixel bit width of the actual image, and there is a short line blanking, which is not conducive to the back-end data processing, so data bit width conversion and line signal widening processing are required.
[0045] Step 2.1: Use row buffer and clock proportional multiplication to convert data bit width. The original clock and conversion clock are multiplied in proportion to the data bit width, thereby realizing data bit width conversion. The conversion clock is generated by the internal PLL. While the bit width is converted, the data is also synchronized with the clock.
[0046] Step 3: Instruction parsing and preprocessing module. The instruction parsing module completes the reception and parsing of external serial communication instructions and obtains corresponding instructions; the preprocessing module determines the mode to be processed based on the obtained instructions.
[0047] Step 3.1 When the command parsing module receives the external serial port packet, it determines the frame header and checksum, and then parses the command word in the packet; the preprocessing module performs subsequent operations according to the agreed protocol, such as whether to crop the video image, the video output mode and video output format, etc.
[0048] Step 4: Data cache and video output module caches the pre-processed video data to the external memory, and reads and outputs the data according to the video format parameters output by the processing module.
[0049] Step 4.1: Data caching mainly implements the caching of pre-processed video data frames; generates output video line and field signals in the SDI standard format, and fills the two-channel CML video data in different ways according to the video format parameters output by the pre-processing module (including cropping and splicing of the two-channel video and centering the two channels separately), generates image data that meets the instruction requirements, and finally outputs it through the SDI interface.
[0050] like Figure 2The figure shows a flow chart of the video acquisition and output method from CML interface to SDI interface. The interfaces include CML input interface and SDI output interface. The input interface data enters the FPGA chip and first passes through the data acquisition module, whose functions include driver configuration, data decoding, video detection, and parameter acquisition. Then it passes through the data bit width conversion module to achieve data bit width conversion and internal clock synchronization. Then it goes to the instruction parsing and preprocessing module to obtain instructions such as video signal output mode and video output format and perform corresponding preprocessing of the instructions. Finally, data caching and protocol encoding are performed to achieve video output from the SDI interface.
[0051] like Figure 3 As shown, in the data acquisition module, the main task of the driver configuration is to drive the external CML decoding chip and SDI encoding chip, that is, to configure the CML decoding chip TLK1501 and the SDI encoding chip LMH0340; the configuration content is to send the enable signal, reset signal, reference clock signal and other related control signals to the FPGA chip; so that the driver chip can work normally according to the required function; data decoding is mainly to parse the data according to the protocol inside the FPGA chip, and restore the image line, field synchronization signal and video data; video detection is to monitor the status of the parsed video signal, and if the video signal is found to be absent or abnormal, it will be fed back to the monitoring point of the device; at the same time, the chip is driven again. Configuration; parameter acquisition, the main function is to obtain image resolution, frame rate and other parameters when there is a normal video signal;
[0052] like Figure 4 As shown in the figure, in the data width conversion module, the main function is to realize the conversion from collected data to pixel data, and to realize the data width conversion by means of line buffering; to widen the line blanking, and to provide capacity for the back-end processing; at the same time, to avoid timing violations caused by signal processing in different clock domains, video data with different clock frequencies will be synchronized to the same clock source, thereby achieving the function of optimizing timing;
[0053] like Figure 5 As shown in the figure, the instruction parsing and preprocessing module mainly includes functions such as serial port signal reception, data packet verification, and command word parsing. When an external user sends an instruction through the serial port, the FPGA chip first checks the frame header and checksum of the serial port data packet. According to the result of parsing the command word in the instruction, the video output mode and video output format are determined, and then the preprocessing corresponding to the instruction is performed, including image cropping, output video parameter reconfiguration, etc.
[0054] like Figure 6As shown, in the data cache and video output module, the main function is to write the valid video data into the DDR3 external memory for caching; according to the video output mode and video output format, the line and field signals of the output image and the read enable signal of the valid video data cached in the DDR3 external memory are generated; finally, in the video protocol encoding module, the synchronization code is added and output to the SDI encoding chip.
[0055] The above description is only a description of the preferred embodiments of the present invention, and is not intended to limit the scope of the present invention. Any changes or modifications made by a person skilled in the art in the field of the present invention based on the above disclosure shall fall within the scope of protection of the claims.
Claims
1. A video acquisition and output device for converting a CML interface to an SDI interface, characterized in that: It includes FPGA chip, DDR3 external memory, power management unit, two CML decoding chips, one SDI encoding chip, and serial communication chip; DDR3 external memory, power management unit, two CML decoding chips, one SDI encoding chip, and serial communication chip are all connected to the FPGA chip; The CML decoding chip is connected to the CML interface, and the SDI encoding chip is connected to the SDI interface; the FPGA chip is connected to a video codec chip, and the video codec chip implements configurations of different functions, including a video codec chip enable signal, a reference clock signal, a reset signal, and other configurable signals; The two channels of CML video data select different processing methods according to the detection results of the data acquisition module and the serial port instructions, including: cutting the two channels of input CML video data to achieve video splicing output; reconfiguring the external memory address and length to achieve separate display of the two channels of video; The input interface data enters the FPGA chip and first passes through the data acquisition module, whose functions include driver configuration, data decoding, video detection, and parameter acquisition; then passes through the data bit width conversion module to achieve data bit width conversion and clock internal synchronization; then goes to the instruction parsing and preprocessing module to obtain the video signal output mode, video output format instructions, and perform preprocessing corresponding to the instructions; finally, the data cache and protocol encoding are performed through the data cache and video output module to achieve video output from the SDI interface; In the data acquisition module, the main task of the driver configuration is to drive the external CML decoding chip and SDI encoding chip, configure the CML decoding chip TLK1501 and the SDI encoding chip LMH0340; the configuration content is to send an enable signal, a reset signal, a reference clock signal and other related control signals to the FPGA chip; so that the driver chip can work normally according to the required functions; Data decoding is to parse the data according to the protocol inside the FPGA chip to restore the image line, field synchronization signal and video data; Video detection is to monitor the status of the analyzed video signal. If the video signal is found to be absent or abnormal, it will be fed back to the monitoring point of the device; at the same time, the chip will be driven and configured again; Parameter acquisition is to obtain the resolution and frame rate parameters of the image when there is a normal video signal; The data width conversion module is used to convert the collected data into pixel data, and realizes the data width conversion by means of line buffering; the line blanking is widened to provide capacity for the back-end processing; at the same time, in order to avoid timing violations caused by signal processing in different clock domains, video data with different clock frequencies will be synchronized to the same clock source to achieve the function of optimizing timing; The instruction parsing and preprocessing module includes serial port signal receiving, data packet checking, and command word parsing functions; when an external user sends an instruction through the serial port, the FPGA chip first checks the frame header and checksum of the serial port data packet; based on the result of parsing the command word in the instruction, the video output mode and video output format are determined, and then the instruction corresponding preprocessing is performed, including image cropping and output video parameter reconfiguration; The data cache and video output module writes the effective video data into the DDR3 external memory for caching; generates the line and field signals of the output image and the read enable signal of the effective video data cached in the DDR3 external memory according to the video output mode and the video output format; finally, in the video protocol encoding module, a synchronization code is added and output to the SDI encoding chip.
2. The video acquisition and output device for converting a CML interface to an SDI interface as claimed in claim 1, characterized in that: The serial port instruction controls the change of the video output resolution and frame rate, and the clock management unit inside the FPGA chip generates the video output pixel clock.
3. The video acquisition and output device for converting a CML interface to an SDI interface as claimed in claim 1, characterized in that: The video acquisition and output device converting the CML interface to the SDI interface supports HD-SDI and 3G-SDI.
4. A working method of the video acquisition and output device based on the CML interface to SDI interface according to any one of claims 1 to 3, characterized in that: include: Step 1: Data acquisition module; The FPGA chip drives and configures the CML decoding chip and receives the parallel data output by the CML decoding chip; According to the camera's self-defined protocol, data decoding is performed to restore the image lines, fields and data; then the image line and field signals are effectively detected to determine whether the video data is received normally, and the feedback is sent to the device monitoring point; Step 1.1, when the video detection module finds that there is no external video input, the device outputs a fixed analog source image and feeds back to the device monitoring point to inform that there is no external input and check whether the external video signal is normal; Step 1.2: When the video detection module finds that there is video input, it decodes the received video data, obtains line and field synchronization and data signals, and obtains the effective resolution, line blanking length and frame rate parameters of the video image; Step 2: Data bit width conversion module: The data bit width collected in the data acquisition module is different from the pixel bit width of the actual image, and data bit width conversion and line signal widening processing are performed; Step 2.1, the data bit width is converted by adopting the method of line buffer and clock equal-proportional frequency multiplication. The original clock and the conversion clock are multiplied according to the ratio of the data bit width, so as to realize the conversion of the data bit width; the conversion clock is generated by the internal PLL, and the data is also synchronized with the clock while the bit width is converted; Step 3: Instruction parsing and preprocessing module: The instruction parsing module completes the reception and parsing of serial port instructions and obtains the corresponding instructions; The preprocessing module determines the mode to be processed according to the instructions obtained; Step 3.1, when the command parsing module receives the external serial port packet, it determines the frame header and checksum, and then parses the command word in the packet; The pre-processing module performs subsequent operations according to the agreed protocol: whether to crop the video image, the video output mode and the video output format; Step 4: The data cache and video output module caches the pre-processed video data to an external memory, and reads and outputs the data according to the video format parameters output by the processing module; Step 4.1, data caching realizes caching of pre-processed video data frames; The output video line and field signals are generated in the SDI standard format, and the two CML video data are filled in different ways according to the video format parameters output by the pre-processing module, namely, the two videos are cropped and spliced, and the two channels are displayed in the center respectively, to generate image data that meets the instruction requirements, and finally output through the SDI interface.
5. The working method of the video acquisition and output device for converting a CML interface to an SDI interface as claimed in claim 4, characterized in that: In the data acquisition module, the main task of the driver configuration is to drive the external CML decoding chip and SDI encoding chip, configure the CML decoding chip TLK1501 and the SDI encoding chip LMH0340; the configuration content is to send an enable signal, a reset signal, a reference clock signal and other related control signals to the FPGA chip; so that the driver chip can work normally according to the required functions; Data decoding is to parse the data according to the protocol inside the FPGA chip to restore the image line, field synchronization signal and video data; Video detection is to monitor the status of the analyzed video signal. If the video signal is found to be absent or abnormal, it will be fed back to the monitoring point of the device; at the same time, the chip will be driven and configured again; Parameter acquisition is to obtain the resolution and frame rate parameters of the image when there is a normal video signal.
6. The working method of the video acquisition and output device for converting a CML interface to an SDI interface as claimed in claim 4, characterized in that: The data bit width conversion module realizes the conversion of collected data into pixel data by means of line cache, widens the line blanking to provide capacity for back-end processing, and in order to avoid timing violations caused by signal processing in different clock domains, video data with different clock frequencies will be synchronized to the same clock source to achieve the function of optimizing timing.
7. The working method of the video acquisition and output device for converting a CML interface to an SDI interface as claimed in claim 4, characterized in that: The instruction parsing and preprocessing module includes serial port signal receiving, data packet checking, and command word parsing functions; when an external user sends an instruction through the serial port, the FPGA chip first checks the frame header and checksum of the serial port data packet; based on the result of parsing the command word in the instruction, the video output mode and video output format are determined, and then the corresponding preprocessing of the instruction is performed, including image cropping and output video parameter reconfiguration.
8. The working method of the video acquisition and output device for converting a CML interface to an SDI interface as claimed in claim 4, characterized in that: The data cache and video output module writes the valid video data into the DDR3 external memory for caching; According to the video output mode and video output format, the line and field signals of the output image and the read enable signal for reading the valid video data cached in the DDR3 external memory are generated. Finally, the synchronization code is added to the video protocol encoding module and output to the SDI encoding chip.
Citation Information
Patent Citations
Self-diagnosis and recovery type electric display pannel system controlled by multiple signal transmission line
KR101548351B1
Encoding / decoding device and video transmission system
US20100135381A1
