CN110855996B - Image coding and decoding and network transmission method and device based on FPGA - Google Patents

Image coding and decoding and network transmission method and device based on FPGA Download PDF

Info

Publication number
CN110855996B
CN110855996B CN201910938522.9A CN201910938522A CN110855996B CN 110855996 B CN110855996 B CN 110855996B CN 201910938522 A CN201910938522 A CN 201910938522A CN 110855996 B CN110855996 B CN 110855996B
Authority
CN
China
Prior art keywords
chip
decoding
data
jpeg2000
encoding
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910938522.9A
Other languages
Chinese (zh)
Other versions
CN110855996A (en
Inventor
亢琰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
709th Research Institute of CSIC
Original Assignee
709th Research Institute of CSIC
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 709th Research Institute of CSIC filed Critical 709th Research Institute of CSIC
Priority to CN201910938522.9A priority Critical patent/CN110855996B/en
Publication of CN110855996A publication Critical patent/CN110855996A/en
Application granted granted Critical
Publication of CN110855996B publication Critical patent/CN110855996B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/42Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by implementation details or hardware specially adapted for video compression or decompression, e.g. dedicated software implementation

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

The invention discloses an image coding and decoding and network transmission method and device based on an FPGA. The FPGA realizes the configuration and control of JPEG2000 encoding and decoding chips, network communication chips and the like under the configuration instructions of the upper computers at the encoding and decoding ends respectively. The coding end receives video images, converts the video images into a digital format, and codes the acquired video images by a JPEG2000 coding chip. The coded data output by the coding chip is buffered and then sent to the network communication chip to generate a network data message and send the network data message to the Ethernet. The decoding end receives the video image data on the Ethernet by reading the network data message of the network communication chip. And the decoding end buffers the network message data, then sends the network message data to a JPEG2000 decoding chip for image decoding, and then restores and displays the video image. The invention gives full play to the function of each part and meets the requirements of real-time performance of video image coding and decoding and network transmission.

Description

Image coding and decoding and network transmission method and device based on FPGA
Technical Field
The invention relates to the technical field of video image coding and decoding system design and the field of data network transmission.
Background
JPEG2000, which is a successor to JPEG, is based on discrete wavelet transform, and employs an embedded coding technique EBCOT with an optimal truncation function to achieve advanced compression performance, unlike the conventional JPEG standard based on discrete cosine transform.
In the hardware scheme for implementing JPEG2000 image decoding, generally, there are several ways of implementing hardware algorithm based on FPGA, implementing system based on DSP processor, and implementing the methods by using application specific integrated circuit. Although the hardware implementation mode based on the FPGA platform can increase the processing speed, the digital circuit design implementation of the algorithm also has high difficulty, the design is complex and the workload is very large. The realization mode based on the DSP processor has larger calculation amount, brings great difficulty to the realization of the real-time performance of coding and decoding due to the processing serial performance, has less ideal processing effect and is easy to make mistakes; the implementation mode is generally only used for the implementation of the core part of the JPEG2000 coding and decoding processing, and is not implemented for the whole process. The method adopts the hardware mode of digital circuit design to realize parallel flow chip, fully utilizes the characteristics of hardware to improve the speed of the algorithm, has the advantages of high decoding efficiency, good image quality and the like, and can be conveniently used in a hardware system under the condition of meeting the time sequence requirement.
In the application field of modern video coding and decoding, more and more field coding and decoding devices need to expand network functions to realize remote control and data transmission. Ethernet is widely used due to its advantages of low cost, easy integration, and long transmission distance. The key to implement the ethernet interface is how to implement a complex TCP/IP protocol stack, and there are several schemes in common at present.
Programmers use network programming languages to program a computer with an operating system and a network card driver to implement a network protocol. The scheme is simple and flexible, but does not meet the requirements of system miniaturization and low power consumption. In addition, under an extremely severe environment, the system can be halted and the like, and the reliability is poor.
Many mainstream microprocessors, DSPs and FPGAs in the market at present integrate MAC controllers, and PHY chips are driven by MAC. The scheme is suitable for application environments with complex product functions, but designers must know complex network transmission protocols and realize the protocols through software, so that the development period of the product is prolonged, and a large amount of system resources are occupied.
Some korean companies have introduced several very highly integrated ethernet communication chips, which not only integrate MAC and PHY, but also add firmware communication protocol support, including: TCP, UDP, ICMP, ARP, IGMP, etc. They may support 10M/100M ethernet data communications, but not 1000M ethernet. The processors such as the single chip microcomputer and the FPGA can realize Ethernet communication through register configuration and direct access to the chips without realizing complex communication protocols. Another benefit of using a hardware protocol stack ethernet chip is reduced reliance on the host processor, i.e., reduced hardware complexity.
A Field-Programmable Gate Array (FPGA) is a kind of semi-custom circuit, and has very high flexibility and very rich logic Gate circuits, so that the expandability is very high. The circuit function formed by a plurality of small-scale circuit chips can be realized in one FPGA, the space of a circuit board can be saved, and the reliability of a system is improved. The FPGA developer can reconstruct the structure and the working mode of the hardware through software programming. The programmability of FPGAs makes any modification on a design prototype very easy and fast to implement. Compared with chips such as a single chip microcomputer and a DSP, the FPGA has the advantages of higher transmission speed, higher time control precision, multiple compatible interfaces, capability of responding to a system more quickly and natural advantages in parallel processing; compared with a CPLD, the FPGA is more suitable for finishing sequential logic.
Disclosure of Invention
The invention provides an image coding and decoding and network transmission method and device based on an FPGA (field programmable gate array), which can meet the requirements of real-time performance and network transmission of video image coding and decoding.
In order to achieve the purpose, the invention adopts the following technical scheme:
according to a first aspect of the present invention, a method for image encoding and decoding and network transmission based on FPGA is characterized by comprising the following steps:
s1, instruction acquisition: acquiring a configuration instruction sent by a user through an upper computer;
s2, encoding and decoding configuration: initializing JPEG2000 encoding and decoding chips of an encoding end and a decoding end, and initializing a video A/D chip and a video D/A chip;
s3, network communication configuration: initializing network communication chips of an encoding end and a decoding end;
s4, video image acquisition and encoding: converting the PAL mode video, and outputting digital video image data in a standard format; JPEG2000 encoding is carried out on the collected video image data;
s5, data transmission: acquiring coded video image data from a JPEG2000 coding chip, caching the video image data, sending the video image data to a network communication chip of a coding end, and sending the coded video image data to an Ethernet according to a TCP/IP protocol;
s6, data reception: receiving a network data message according to a TCP/IP protocol through an Ethernet, acquiring encoded video image data from a decoding end network communication chip, caching and sending the video image data to a JPEG2000 decoding chip;
s7, video image decoding and restoring: and finishing the decoding of the video image data in the JPEG2000 coding format, restoring the decoded digital video image into a PAL format through a video D/A chip, and connecting a display device to reproduce the video image.
In the above aspect, the method further includes constructing a communication and control flow inside the encoding end FPGA, and the specific steps are as follows:
1) by accessing a serial port control chip of a coding end, reading a configuration instruction sent by a user through a serial port of an upper computer of the coding end, and acquiring configuration parameters of a JPEG2000 coding chip, a network communication chip of the coding end and a video A/D chip;
2) the data bus and the address bus of the JPEG2000 coding chip are connected, and the internal generation time sequence control circuit controls the output of the chip selection signal, the read enable signal and the write enable signal of the JPEG2000 coding chip to realize the configuration of the JPEG2000 coding chip; i connecting video A/D chip2C interface, internal simulation I2The C interface main control end realizes the configuration of the video A/D chip;
3) the data bus and the address bus of the network communication chip of the encoding end are connected, and the time sequence control circuit is generated inside the data bus and the address bus to control the output of chip selection signals, read enabling signals and write enabling signals of the network communication chip, so that the configuration of the network communication chip of the encoding end is realized;
4) reading the coded data output by the JPEG2000 coding chip according to the control method in the step 2);
5) constructing a data channel for transmitting video image codes to a network, setting a buffer area on the channel for caching the coded data, and performing data format conversion on the data; writing the coded data into a network communication chip of a coding end according to the control method in the step 3) so as to realize network data transmission.
In the above aspect, the method further includes constructing a communication and control flow inside the decoding end FPGA, and the specific steps are as follows:
1) by accessing a serial port control chip of a decoding end, reading a configuration instruction sent by a user through a serial port of an upper computer of the decoding end, and acquiring configuration parameters of a JPEG2000 decoding chip, a network communication chip of the decoding end and a video D/A chip;
2) the data bus and the address bus of the JPEG2000 decoding chip are connected, and the internal generation time sequence control circuit controls the output of the chip selection signal, the read enable signal and the write enable signal of the JPEG2000 decoding chip to realize the configuration of the JPEG2000 decoding chip; i connecting video D/A chip2C interface, internal simulation I2The C interface main control end realizes the configuration of a video D/A chip;
3) the data bus and the address bus which are connected with the network communication chip of the decoding end are internally provided with a time sequence control circuit which controls the output of chip selection signals, read enabling signals and write enabling signals of the network communication chip to realize the configuration of the network communication chip of the decoding end;
4) according to the control method in the step 3), reading network message data from a network communication chip of a decoding end to realize network data receiving; constructing a data channel through which a network receives a decoded video image, setting a buffer area on the channel for caching network message data, and performing data format conversion on the data;
5) and (3) writing the network message data into a JPEG2000 decoding chip according to the control method in the step 2), and providing data input for the decoding chip.
According to a second aspect of the present invention, an apparatus for image encoding and decoding and network transmission based on FPGA is characterized in that the apparatus comprises:
1) an instruction acquisition module: the system comprises a host computer, a configuration module and a control module, wherein the configuration module is used for acquiring a configuration instruction sent by a user through the host computer;
2) the coding and decoding configuration module: the device is used for initializing JPEG2000 encoding and decoding chips of an encoding end and a decoding end and initializing a video A/D chip and a video D/A chip;
3) the network communication configuration module: the network communication chip is used for initializing the network communication chips of the encoding end and the decoding end;
4) the video image acquisition and coding module comprises: the system is used for converting the PAL system video and outputting digital video image data in a standard format; JPEG2000 encoding is carried out on the collected video image data;
5) a data sending module: the video image processing device is used for acquiring coded video image data from a JPEG2000 coding chip, caching the video image data and sending the video image data to a network communication chip of a coding end, and further sending the coded video image data to the Ethernet according to a TCP/IP protocol;
6) a data receiving module: the decoder is used for receiving network data messages through Ethernet according to a TCP/IP protocol, acquiring coded video image data from a decoder network communication chip, caching the video image data and then sending the video image data to a JPEG2000 decoding chip;
7) the video image decoding and restoring module: the digital video image decoding device is used for decoding video image data in a JPEG2000 encoding format, restoring a decoded digital video image into a PAL format through a video D/A chip and connecting display equipment to reproduce the video image.
In the above aspect, the modules 1), 2), 3), 5), 6) are characterized in that:
1) each module is controlled based on the FPGA;
2) the encoding end board card comprises the modules 1), 2), 3) and 5), and the decoding end board card comprises the modules 1), 2), 3) and 6), a user can realize the encoding end user configuration instruction acquisition, the JPEG2000 encoding chip initialization, the encoding end network communication chip initialization, the encoding end function of acquiring encoded data from the JPEG2000 encoding chip, encoded data buffering and encoded data transmission by loading the FPGA firmware of the encoding end, and the user can realize the decoding end user configuration instruction acquisition, the JPEG2000 decoding chip initialization, the decoding end network communication chip initialization, the network message data acquisition and the decoding end function of transmitting the buffered data to the JPEG2000 decoding chip by loading the FPGA firmware of the decoding end.
In the above aspect, the modules 4), 7) are characterized in that:
1) the modules 4) and 7) are based on JPEG2000 encoding and decoding chips with the same model;
2) the encoding end board card comprises the module 4), and the decoding end board card comprises the module 7), so that a user loads JPEG2000 encoding chip firmware or JPEG2000 decoding chip firmware through the FPGA to realize encoding or decoding of video images.
In the above aspect, the apparatus includes an encoding end FPGA, and specifically includes:
1) the coding and network sending construction module comprises: the data channel is used for constructing a video image data code composed of a code control unit, a code buffer unit and a network transmission control unit and transmitting the video image data code to a network to realize a data interface and a control interface among all the units;
2) an encoding control unit: the data bus and the address bus are used for connecting the JPEG2000 coding chip, and the chip selection signal, the read enabling signal and the write enabling signal of the JPEG2000 coding chip are controlled to be output through an internal time sequence control circuit;
3) an encoding buffer unit: the device is used for setting an encoding buffer area and performing format conversion of encoded data;
4) a network transmission control unit: the data bus and the address bus are used for connecting the network communication chip of the encoding end, and the chip selection signal, the read enable signal and the write enable signal of the network communication chip are controlled to be output through an internal time sequence control circuit;
5) the encoding end configuration module: the device is used for accessing the serial port control chip and acquiring configuration parameters of a JPEG2000 encoding chip, a network communication chip and a video A/D chip of an encoding end according to a user instruction; reading an IP core with a ROM function in the FPGA to obtain coding firmware; and the data interface and the control interface between the video A/D chip and the coding control unit, the network sending control unit and the video A/D chip are realized.
In the above aspect, the apparatus includes a decoding end FPGA, and specifically includes:
1) the decoding and network receiving construction module: the data channel is used for constructing a data channel which is formed by a network receiving control unit, a decoding buffer unit and a decoding control unit and used for receiving video image data to be decoded, and a data interface and a control interface among all the units are realized;
2) a network reception control unit: the data bus and the address bus are used for connecting the network communication chip of the decoding end, and the chip selection signal, the read enabling signal and the write enabling signal of the network communication chip are controlled to be output through a time sequence control circuit in the FPGA;
3) a decoding buffer unit: the device is used for setting a decoding buffer area and carrying out format conversion of network message data;
4) a decoding control unit: the data bus and the address bus are used for connecting the JPEG2000 decoding chip, and the chip selection signal, the read enabling signal and the write enabling signal of the JPEG2000 decoding chip are controlled to be output through an internal time sequence control circuit;
5) a decoding end configuration module: the device is used for accessing the serial port control chip and acquiring configuration parameters of a JPEG2000 decoding chip, a network communication chip and a video D/A chip of a decoding end according to a user instruction; acquiring decoding firmware by reading an IP core with a ROM function in the FPGA; and the data interface and the control interface between the decoding control unit and the network receiving control unit and between the network receiving control unit and the video D/A chip are realized.
In the above aspect, the coding buffer unit specifically functions as:
receiving the coded video image data output by the JPEG2000 coding chip, performing format conversion on the coded video image data, sending the coded video image data into an FIFO memory for buffering, reading the FIFO, and performing format conversion on the data once.
In the above aspect, the decoding buffer unit specifically functions as:
and receiving the network message data output by the network communication chip at the decoding end, performing format conversion on the network message data, sending the network message data into an FIFO memory for buffering, reading the FIFO, and performing format conversion on the data once.
The invention has the beneficial effects that: the invention adopts a special JPEG2000 encoding and decoding chip and a network communication chip to realize the collection and encoding of video images, the efficient and real-time Ethernet data transmission and the decoding and restoration of the video images; meanwhile, on the premise of not replacing the chip, the performance and the function can be improved by modifying the design of the logic circuit based on the programmable characteristic of the hardware of the FPGA, and the FPGA has larger subsequent development space.
Drawings
FIG. 1 is a system network diagram of the FPGA-based image encoding and decoding and network transmission method and device of the present invention;
FIG. 2 is a flow chart of the FPGA-based image encoding and decoding and network transmission method of the present invention;
FIG. 3 is a schematic diagram of an encoding-end FPGA control flow of the FPGA-based image encoding and decoding and network transmission method of the invention;
FIG. 4 is a schematic diagram of the decoding end FPGA control flow of the FPGA-based image coding and decoding and network transmission method of the invention;
FIG. 5 is a schematic block diagram of a board card according to an embodiment of the method and apparatus for image encoding and decoding and network transmission based on FPGA of the present invention;
FIG. 6 is a schematic diagram of the design of the interface between the video chip and the first path ADV212 in the embodiment of the method and apparatus for image encoding and decoding and network transmission based on FPGA;
fig. 7 is a schematic diagram illustrating the design of the interface between the video chip and the second path of ADV212 in the embodiment of the method and apparatus for image encoding and decoding and network transmission based on FPGA of the present invention.
Detailed Description
The technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention.
Referring to fig. 1, a system network diagram of the method and apparatus for image encoding and decoding and network transmission based on FPGA according to the embodiment of the present invention includes five parts, namely, an encoding end upper computer, an encoding end, a network switching device, a decoding end, and a decoding end upper computer, where the encoding end and the decoding end are core components of the system. The coding end and the decoding end are both connected with the network switching equipment through the network ports. The system can process the collected video image from the camera in real time, a special JPEG2000 coding ASIC chip is adopted to code the collected image in real time according to JPEG2000 standard, and the coded data is transmitted through Ethernet; for the coded data message received from the Ethernet, a special JPEG2000 decoding ASIC chip is adopted to decode in real time according to the JPEG2000 standard, and a video image can be reproduced by connecting a display terminal.
Fig. 2 is a schematic flow chart of a method according to an embodiment of the present invention, which includes the following steps:
s1, instruction acquisition: acquiring a configuration instruction sent by a user through an upper computer;
s2, encoding and decoding configuration: initializing JPEG2000 encoding and decoding chips of an encoding end and a decoding end, and initializing a video A/D chip and a video D/A chip;
s3, network communication configuration: initializing network communication chips of an encoding end and a decoding end;
s4, video image acquisition and encoding: converting the PAL mode video, and outputting digital video image data in a standard format; JPEG2000 encoding is carried out on the collected video image data;
s5, data transmission: acquiring coded video image data from a JPEG2000 coding chip, caching the video image data, sending the video image data to a network communication chip of a coding end, and sending the coded video image data to an Ethernet according to a TCP/IP protocol;
s6, data reception: receiving a network data message according to a TCP/IP protocol through an Ethernet, acquiring encoded video image data from a decoding end network communication chip, caching and sending the video image data to a JPEG2000 decoding chip;
s7, video image decoding and restoring: and finishing the decoding of the video image data in the JPEG2000 coding format, restoring the decoded digital video image into a PAL format through a video D/A chip, and connecting a display device to reproduce the video image.
Corresponding to the method flow of the embodiment of the present invention, the apparatus for image encoding and decoding and network transmission based on FPGA provided in the embodiment of the present invention includes:
1) an instruction acquisition module: the system comprises a host computer, a configuration module and a control module, wherein the configuration module is used for acquiring a configuration instruction sent by a user through the host computer;
2) the coding and decoding configuration module: the device is used for initializing JPEG2000 encoding and decoding chips of an encoding end and a decoding end and initializing a video A/D chip and a video D/A chip;
3) the network communication configuration module: the network communication chip is used for initializing the network communication chips of the encoding end and the decoding end;
4) the video image acquisition and coding module comprises: the system is used for converting the PAL system video and outputting digital video image data in a standard format; JPEG2000 encoding is carried out on the collected video image data;
5) a data sending module: the video image processing device is used for acquiring coded video image data from a JPEG2000 coding chip, caching the video image data and sending the video image data to a network communication chip of a coding end, and further sending the coded video image data to the Ethernet according to a TCP/IP protocol;
6) a data receiving module: the decoder is used for receiving network data messages through Ethernet according to a TCP/IP protocol, acquiring coded video image data from a decoder network communication chip, caching the video image data and then sending the video image data to a JPEG2000 decoding chip;
7) the video image decoding and restoring module: the digital video image decoding device is used for decoding video image data in a JPEG2000 encoding format, restoring a decoded digital video image into a PAL format through a video D/A chip and connecting display equipment to reproduce the video image.
In this embodiment, the 7 modules are all controlled based on the FPGA. The encoding end board card comprises the modules 1), 2), 3) and 5), and the decoding end board card comprises the modules 1), 2), 3) and 6). The user realizes the functions of the encoding end, such as acquisition of an encoding end user configuration instruction, initialization of a JPEG2000 encoding chip, initialization of an encoding end network communication chip, acquisition of encoded data from the JPEG2000 encoding chip, encoding data buffering and encoded data transmission by loading the FPGA firmware of the encoding end. The user realizes the functions of the decoding end of the JPEG2000 decoding chip after loading the FPGA firmware of the decoding end to acquire the configuration instruction of the decoding end user, initialize the JPEG2000 decoding chip, initialize the network communication chip of the decoding end, acquire and buffer the network message data and send the network message data to the decoding end of the JPEG2000 decoding chip. The modules 4) and 7) are based on JPEG2000 encoding and decoding chips of the same model. The encoding end board card comprises the module 4), and the decoding end board card comprises the module 7), so that a user loads JPEG2000 encoding chip firmware or JPEG2000 decoding chip firmware through the FPGA to realize encoding or decoding of video images.
According to one embodiment of the invention, for the FPGA-based image JPEG2000 encoding and decoding and network transmission device, the encoding end board card and the decoding end board card are realized by the board cards with the same hardware principle structure. The main difference between the coding end board card and the decoding end board card is that dial switches on the board cards are different in setting and FPGA firmware is different. On the board card, a user sets and downloads different FPGA firmware through a dial switch to realize different board card functions of the encoding end and the decoding end. The FPGA firmware is used for an encoding end or a decoding end and can be divided into: an encoding side firmware and a decoding side firmware.
The specific implementation scheme of the embodiment of the invention is as follows: after the FPGA on the coding board analyzes a command message from an upper computer received by a serial port, the initialization of a JPEG2000 coding chip on the board, the initialization of a network communication chip and the initialization of a video A/D chip are completed according to the analyzed command; the video A/D chip on the coding board converts the analog PAL system video from the camera and outputs the digital video image data in ITU656 format; JPEG2000 encoding is carried out on the data in ITU656 format after the data is acquired by a JPEG2000 encoding chip on the encoding board; the FPGA on the coding board acquires coded data from the JPEG2000 coding chip, the coded data is sent to a network communication chip after being cached, and the coded video data is sent to the Ethernet according to a TCP/IP protocol; after the FPGA on the decoding board analyzes a command message from an upper computer received by a serial port, the initialization of a JPEG2000 decoding chip on the board, the initialization of a network communication chip and the initialization of a video D/A chip are completed according to the analyzed command; the decoding board receives the Ethernet data message according to a TCP/IP protocol, the FPGA acquires the coded video image data through the network communication chip, and the video image data is sent to the JPEG2000 decoding chip by the FPGA after being cached; the JPEG2000 decoding chip completes decoding of video image data in a JPEG2000 encoding format and sends the decoded video image data to the video D/A chip; the video D/A chip restores the video image to the analog PAL mode and can be connected with the display equipment to reproduce the video image.
Fig. 3 is a schematic diagram of a control flow of an encoding end FPGA according to an embodiment of the present invention, which includes the following specific steps:
1) by accessing a serial port control chip of a coding end, reading a configuration instruction sent by a user through a serial port of an upper computer of the coding end, and acquiring configuration parameters of a JPEG2000 coding chip, a network communication chip of the coding end and a video A/D chip;
2) the data bus and the address bus of the JPEG2000 coding chip are connected, and the internal generation time sequence control circuit controls the output of the chip selection signal, the read enable signal and the write enable signal of the JPEG2000 coding chip to realize the configuration of the JPEG2000 coding chip; i connecting video A/D chip2C interface, internal simulation I2The C interface main control end realizes the configuration of the video A/D chip;
3) the data bus and the address bus of the network communication chip of the encoding end are connected, and the time sequence control circuit is generated inside the data bus and the address bus to control the output of chip selection signals, read enabling signals and write enabling signals of the network communication chip, so that the configuration of the network communication chip of the encoding end is realized;
4) reading the coded data output by the JPEG2000 coding chip according to the control method in the step 2);
5) constructing a data channel for transmitting video image codes to a network, setting a buffer area on the channel for caching the coded data, and performing data format conversion on the data; writing the coded data into a network communication chip of a coding end according to the control method in the step 3) so as to realize network data transmission.
Fig. 4 is a schematic diagram of a decoding-end FPGA control flow according to an embodiment of the present invention, which includes the following specific steps:
1) by accessing a serial port control chip of a decoding end, reading a configuration instruction sent by a user through a serial port of an upper computer of the decoding end, and acquiring configuration parameters of a JPEG2000 decoding chip, a network communication chip of the decoding end and a video D/A chip;
2) the data bus and the address bus of the JPEG2000 decoding chip are connected, and the internal generation time sequence control circuit controls the output of the chip selection signal, the read enable signal and the write enable signal of the JPEG2000 decoding chip to realize the configuration of the JPEG2000 decoding chip; i connecting video D/A chip2C interfaceInternal simulation I2The C interface main control end realizes the configuration of a video D/A chip;
3) the data bus and the address bus which are connected with the network communication chip of the decoding end are internally provided with a time sequence control circuit which controls the output of chip selection signals, read enabling signals and write enabling signals of the network communication chip to realize the configuration of the network communication chip of the decoding end;
4) according to the control method in the step 3), reading network message data from a network communication chip of a decoding end to realize network data receiving; constructing a data channel through which a network receives a decoded video image, setting a buffer area on the channel for caching network message data, and performing data format conversion on the data;
5) and (3) writing the network message data into a JPEG2000 decoding chip according to the control method in the step 2), and providing data input for the decoding chip.
Fig. 5 is a schematic block diagram of the board card according to this embodiment. The board card mainly comprises an FPGA chip, a first video A/D chip, a second video A/D chip, a first JPEG2000 encoding and decoding chip, a second JPEG2000 encoding and decoding chip, a first cache chip, a second cache chip, a first video D/A chip, a second video D/A chip, a first bus switch chip, a second bus switch chip, a network communication chip, a first PHY (Ethernet physical layer transceiver) chip, a second PHY chip and a serial port control chip UART.
In this embodiment, the video a/D chip adopts TVP5150AM of Analog Devices, the JPEG2000 codec chip adopts ADV212 of Analog Devices, the video D/a chip adopts SAA7121H of Philips, the bus switch chip adopts SN74CBTLV16212GR, the network communication chip adopts W5300 of WiZnet, the serial port control chip adopts TL16C752B of TI, and the FPGA adopts a Virtex-4 (model number XC4VLX200) chip of Xilinx as a main control chip of the board card. Two FIFO memory chips (model IDT72V2111) with the capacity of 524288 multiplied by 9bit are externally hung on the FPGA and are used for buffering two paths of video image data after being coded. Two external PHYs (model RTL8201CP) of the FPGA can realize external dual-redundancy network connection.
In this embodiment, the encoding and decoding end board cards provide a serial port communication mechanism and an RS232 interface for the upper computer, and the user can send configuration parameters to the system through the serial port of the upper computer. The FPGA receives an instruction from the upper computer, and the configuration of the JPEG2000 encoding and decoding chip, the network communication chip, the video A/D chip and the video D/A chip is completed after the instruction is analyzed.
In this embodiment, the serial port circuit on the board card mainly includes a level conversion chip, a UART chip, and an FPGA. The FPGA receives the instruction and completes analysis by controlling the UART chip. The content of the instruction mainly comprises: the method comprises the steps of board card IP address and MAC address, gateway address, subnet mask, two-path multicast address, port number, JPEG2000 codec chip configuration parameter, JPEG2000 codec parameter, video A/D chip configuration parameter, video D/A chip configuration parameter and the like. After the encoding end configuration module in the encoding end FPGA completes instruction receiving and parameter analysis, parameters are transmitted to the encoding control unit and the network sending control unit through an interface between the encoding end FPGA and the encoding control unit and an interface between the encoding end FPGA and the network sending control unit, so that the configuration of the encoding end ADV212 and the W5300 is completed. After the encoding end configuration module in the decoding end FPGA completes instruction receiving and parameter analysis, parameters are transmitted to the decoding control unit and the network receiving control unit through an interface between the encoding end configuration module and the decoding control unit and an interface between the encoding end configuration module and the network receiving control unit, so that the configuration of the ADV212 and the W5300 of the decoding end is completed.
In this embodiment, the encoding end configuration module in the encoding end FPGA or the decoding end configuration module in the decoding end FPGA completes the reception of the serial port data by reading the corresponding register of the serial port control chip TL16C752B, and assigns the received data to the corresponding register variable of each chip configuration parameter according to the agreed sequence.
In this embodiment, the configuration of the ADV212 by the encoding control unit inside the FPGA on the encoding end board card includes writing of the working parameters, the encoding firmware, the JPEG2000 encoding parameters, and the like of the ADV 212; the network transmission control unit implements the configuration of W5300 including host interface settings, network information settings, and allocation of internal TX memory.
In this embodiment, the configuration of the ADV212 by the decoding control unit inside the FPGA on the decoding end board card includes writing of the working parameters, decoding firmware, JPEG2000 decoding parameters, and the like of the ADV 212; the network reception control unit implements configuration of the W5300 including host interface setting, network information setting, and allocation of internal RX memory.
In this embodiment, after the coding control unit, the network transmission control unit, the network reception control unit, and the decoding control unit in the FPGA complete initialization of the ADV212 and the W5300, the coding control unit continues to control reading and writing of the coding and decoding data of the ADV212 and reading and writing of the network data of the W5300, respectively.
In this embodiment, the initialization parameter (including the register address and the register data) for W5300 is stored in a multi-bit reg variable, and lower 10-bit data is given to an address signal and lower 16-bit data is given to a data signal, and all registers are sequentially initialized by shifting right in the order from lower to higher.
In this embodiment, after the FPGA completes initialization of W5300 and initialization of socket0 and socket1 through the dedicated bus of W5300, encoded data is sent to W5300 by writing S0_ TX _ f, S1_ TX _ f; network message data can be obtained by reading S0_ RX _ FIFOR and S1_ RX _ FIFOR registers of corresponding sockets.
In this embodiment, the FPGA writes the ADV212 operating parameters, codec firmware, JPEG2000 codec parameters, and the like into the internal register and storage space of the ADV212 through HDATA bus access.
In this embodiment, to implement the encoding and decoding functions of the ADV212 on the video image encoding and decoding board card, the FPGA configures the PLL register through the HDATA bus of the ADV212, and enters the No-Host boost mode after configuring the BOOT register. Then, the FPGA configures the MMODE, BUSMODE registers, and directs the encoded firmware or decoded firmware to the RAM space inside the ADV212 via the HDATA bus. The FPGA reconfigures a BOOT register and then enters a Co-PX BOOT mode, then configures MMODE and BUSMODE registers, and then sets JPEG2000 encoding or decoding parameters, configuration (optional) of a size register and setting of a coding FIFO storage threshold value in the ADV 212. From this point, the Firmware (Firmware) of the ADV212 takes over the control work of the entire chip. Then, the FPGA responds to the data transmission request on the HDATA bus and takes out or transmits the coded data according to the time sequence required by the HDATA bus.
In the embodiment, the latest ADV212 encode and decode firmware on an ADI official website is selected, and the firmware is in a sea format. The firmware loading method comprises the following steps: an IP core with a ROM function is generated and then the sea file is converted into an coe file that the IP core can directly read. The coe file is imported when an IP core is generated to initialize the IP core with the coe file.
In the present embodiment, when the ADV212 is used as the encoding mode, it is in a state of slave mode configuration; when the ADV212 is used as a decoding mode, it is in a state of main mode configuration. In the encoding mode, the TVP5150AM receives the PAL format analog signal and outputs video image data including EAV/SAV synchronization codes. ADV212 can synchronize to these sync codes by configuring registers VO _ START, V1_ START, V0_ END, V1_ END, PIXEL _ START, and PIXEL _ END of ADV212 to reflect the size of the input video image. In the decoding mode, the EAV/SAV synchronization code can be generated according to the configuration by configuring the register VMODE of the ADV212 as the decoding main mode, and simultaneously configuring the registers XTOT, YTOT, F0_ START, F1_ START, F0_ END, F1_ END, V0_ START, V1_ START, V0_ END, V1_ END, PIXEL _ START, PIXEL _ END, and ADV212 to output the video image data containing the synchronization code. The SAA7121H receives video image data including a synchronization code and outputs an analog video image of PAL system.
In this embodiment, as shown in fig. 5, after the encoding board card of the system performs a/D conversion on the 1 st PAL analog video output by the camera accessing the video a/D chip TVP5150AM, the acquired video image data is sent to the ADV212 through the VDATA interface of the ADV212 for encoding processing, and then sent to the FPGA through the HDATA bus of the ADV 212. And the coding and network sending construction module inside the FPGA realizes the transmission of the coded data on a data channel consisting of a coding control unit, a coding buffer unit and a network sending control unit. After receiving the encoded data, W5300 transmits the encoded data to the network in a multicast mode of UDP protocol. The processing mode of the analog video of the 2 nd PAL system is the same as that of the 1 st path. When the two paths of video data are processed simultaneously by the FPGA, the two paths of video data are respectively buffered in FIFO _1 and FIFO _2, and when the two paths of video data are sent to the network communication chip W5300, the two paths of video data are respectively written into registers S0_ TX _ f for and S1_ TX _ f for the socket0 and the socket1 of the W5300 for distinguishing. In fig. 5, at the decoding end of the system, the received multicast packet of the UDP protocol is processed by W5300 and then sent to the FPGA; and a decoding and network receiving construction module in the FPGA realizes the transmission of the coded data on a data channel consisting of a network receiving control unit, a decoding buffer unit and a decoding control unit. The HDATA bus of the ADV212 receives the encoded data and decodes the encoded data, and the VDATA of the ADV212 sends the encoded data to the video D/a chip to be restored to an analog video image, which is sent to the display terminal. When the decoding end receives two paths of video data messages simultaneously, the FPGA obtains two paths of video image data respectively by reading the registers S0_ RX _ FIFOR and S1_ RX _ FIFOR of the socket0 and the socket1 of the W5300, and outputs the two paths of video image data to the HDATA buses of the two paths of ADV212 after the two paths of video image data are respectively sent to the FIFO _1 and the FIFO _2 for buffering.
In this embodiment, the FPGA serves as a main control chip on the board card. Reset signals, chip selection signals, read-write control signals, address signals, data signals, interrupt signals, response signals and the like of the ADV212 chip are all connected with I/O pins of the FPGA, and the functional description of the I/O pins of the FPGA connected with the ADV212 is shown in Table 1; a reset signal, a data width selection signal, a chip selection signal, an address signal, a data signal, a read control signal, a write control signal and an interrupt signal of the W5300 chip are all connected with an I/O pin of the FPGA, and the table 2 shows the functional description of the I/O pin of the FPGA connected with the W5300 chip; the read-write control signal, the address signal and the data signal of the serial port chip are all connected with an I/O pin of the FPGA; reset signals, mode control signals, read clock signals, write clock signals, read enable signals, write enable signals, output enable signals, input data signals, output data signals, mark signals and the like of the 2 FIFO chips are connected with I/O pins of the FPGA; video A/D chip and I of video D/A chip2The C interface signals are all connected with an I/O pin of the FPGA.
TABLE 1
(symbol) Type (B) Description of the invention
/RESET Output Reset signal sent to ADV212
/CS Output Chip select signal to ADV212
/RD Output Read signal control sent to ADV212
/WE Output Write signal control to ADV212
ADDR[3:0] Output A 4-bit address signal sent to ADV 212.
HDATA[31:0] Input/Output 32bit data signal connected to ADV212
/IRQ Input ADV212 issues an interrupt signal
/ACK Iutput Response signal from ADV212
TABLE 2
Figure RE-GDA0002330829190000191
Figure RE-GDA0002330829190000201
In this embodiment, the reset signal of W5300 and the reset signal of ADV212 are both connected to the I/O pin of the FPGA. After the board card is powered on, a 5us low-level reset signal is generated through time delay. After the reset is finished, if the user does not send a configuration instruction at this time, the FPGA starts to initialize the W5300 and the ADV212, respectively, according to the default configuration. During or after the initialization of the W5300 or ADV212 is completed, once the serial port receives a new complete configuration W5300 or ADV212 working state command message, 5us of low-level reset signals are generated on two I/O pins of the FPGA respectively connected to reset pins of the W5300 and ADV212, and then the W5300 and ADV212 are initialized for a new round.
In this embodiment, the video a/D chip (TVP5150AM) and the video D/a chip (SAA7121H) are connected to the VDATA interface of the JPEG2000 codec chip ADV212 via the bus switch chip (SN74CBTLV16212GR), as shown in fig. 6 and 7. The user sets through the dial switch: the video A/D chip outputs a digitized video image signal to the JPEG2000 encoding chip or the video D/A chip receives a video image data output from the JPEG2000 decoding chip.
In this embodiment, the encoding side configuration module in the encoding side FPGA completes the initial operation of the two TVPs 5150AMOr the decoding end configuration module in the decoding end FPGA completes initialization of the two SAA 7121H. All four chips have I2C interface, available as I2C, slave equipment; FPGA as I2The main equipment of C interface selects its two I/O pins to simulate I2The C interface initializes the slave device.
In this embodiment, the external clock for introducing the global clock pin in the FPGA system is 50MHz, and I2The clock standard for C communication may be selected to be 400KHz or 100 KHz. In the design, the 50MHz clock is divided to obtain the 100KHz clock. The frequency of the SCL signal is referenced to the clock frequency.
In this example, two pieces of TVP5150AM I2C Address set to 0XB8, 0XBA, two pieces of SAA7121H I2The C address is set to 0X88, 0X 8C.
In this embodiment, the encoding buffer unit and the decoding buffer unit inside the FPGA are respectively used to buffer data generated by JPEG2000 encoding before network transmission, or to buffer network message data and then send the network message data to a JPEG2000 decoding chip. The coding buffer unit receives the coded video image data output by the JPEG2000 coding chip, carries out format conversion on the coded video image data, sends the coded video image data into an FIFO memory for buffering, reads the FIFO memory and carries out format conversion on the data once. And receiving the network message data output by the network communication chip at the decoding end, performing format conversion on the network message data, sending the network message data into an FIFO memory for buffering, reading the FIFO, and performing format conversion on the data once. The buffer unit can prevent data loss due to a difference between the transmission rate of the ADV212 after data processing and the transmission rate of the W5300 after data processing, and can avoid frequent bus operations. The data format conversion is used for realizing the matching of data width. The data format conversion of the coding buffer unit aims at realizing the matching between the output data width of the coding control unit and the input data width of the FIFO and the matching between the output data width of the FIFO and the input data width of the network transmission control unit. The data format conversion of the decoding buffer unit aims at realizing the matching between the output data width of the network receiving control unit and the FIFO input data width and the matching between the FIFO output data width and the input data width of the decoding control unit.
In this embodiment, the FPGA receives data with a bit width of 32 bits from the HDATA bus, and the data width used by the FIFO is 8 bits. The coding buffer unit needs to convert the coded data from the ADV212 into 32bit to 8bit and then send the data into FIFO, and after reading FIFO, the coded data is converted into 8bit to 16bit and then sent to W5300 for network transmission. The decoding buffer unit converts the decoded data received by the network from 16bit to 8bit, then sends the data into FIFO, reads FIFO, converts the decoded data from 8bit to 32bit, and sends the data to ADV212 for decoding.
In this embodiment, the two PHYs are connected to the FPGA internal generation network switching controller through the media independent interface MII. And the network switch controller provides an MII port to which the W5300 with the MII port is connected. At this time, W5300 is in an operating mode using the external PHY.
It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. It should be understood that these examples are for illustrative purposes only and are not intended to limit the scope of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.

Claims (5)

1. An image coding and decoding and network transmission method based on FPGA is characterized by comprising the following steps:
s1, instruction acquisition: acquiring a configuration instruction sent by a user through an upper computer;
s2, encoding and decoding configuration: initializing JPEG2000 encoding and decoding chips of an encoding end and a decoding end, and initializing a video A/D chip and a video D/A chip;
s3, network communication configuration: initializing network communication chips of an encoding end and a decoding end;
s4, video image acquisition and encoding: converting the PAL mode video, and outputting digital video image data in a standard format; JPEG2000 encoding is carried out on the collected video image data;
s5, data transmission: acquiring coded video image data from a JPEG2000 coding chip, caching the video image data, sending the video image data to a network communication chip of a coding end, and sending the coded video image data to an Ethernet according to a TCP/IP protocol;
s6, data reception: receiving a network data message according to a TCP/IP protocol through an Ethernet, acquiring encoded video image data from a decoding end network communication chip, caching and sending the video image data to a JPEG2000 decoding chip;
s7, video image decoding and restoring: decoding the video image data in the JPEG2000 coding format, restoring the decoded digital video image into a PAL format through a video D/A chip, and connecting a display device to reproduce the video image;
the method also comprises the step of constructing a communication and control flow inside the FPGA at the encoding end, and the specific steps are as follows:
1) by accessing a serial port control chip of a coding end, reading a configuration instruction sent by a user through a serial port of an upper computer of the coding end, and acquiring configuration parameters of a JPEG2000 coding chip, a network communication chip of the coding end and a video A/D chip;
2) the data bus and the address bus of the JPEG2000 coding chip are connected, and the internal generation time sequence control circuit controls the output of the chip selection signal, the read enable signal and the write enable signal of the JPEG2000 coding chip to realize the configuration of the JPEG2000 coding chip; i connecting video A/D chip2C interface, internal simulation I2The C interface main control end realizes the configuration of the video A/D chip;
3) the data bus and the address bus of the network communication chip of the encoding end are connected, and the time sequence control circuit is generated inside the data bus and the address bus to control the output of chip selection signals, read enabling signals and write enabling signals of the network communication chip, so that the configuration of the network communication chip of the encoding end is realized;
4) reading the coded data output by the JPEG2000 coding chip according to the control method in the step 2);
5) constructing a data channel for transmitting video image codes to a network, setting a buffer area on the channel for caching the coded data, and performing data format conversion on the data; writing the coded data into a network communication chip of a coding end according to the control method in the step 3) so as to realize network data transmission;
the method also comprises the step of constructing a communication and control flow inside the FPGA of the decoding end, and the specific steps are as follows:
1) by accessing a serial port control chip of a decoding end, reading a configuration instruction sent by a user through a serial port of an upper computer of the decoding end, and acquiring configuration parameters of a JPEG2000 decoding chip, a network communication chip of the decoding end and a video D/A chip;
2) the data bus and the address bus of the JPEG2000 decoding chip are connected, and the internal generation time sequence control circuit controls the output of the chip selection signal, the read enable signal and the write enable signal of the JPEG2000 decoding chip to realize the configuration of the JPEG2000 decoding chip; i connecting video D/A chip2C interface, internal simulation I2The C interface main control end realizes the configuration of a video D/A chip;
3) the data bus and the address bus which are connected with the network communication chip of the decoding end are internally provided with a time sequence control circuit which controls the output of chip selection signals, read enabling signals and write enabling signals of the network communication chip to realize the configuration of the network communication chip of the decoding end;
4) according to the control method in the step 3), reading network message data from a network communication chip of a decoding end to realize network data receiving; constructing a data channel through which a network receives a decoded video image, setting a buffer area on the channel for caching network message data, and performing data format conversion on the data;
5) and (3) writing the network message data into a JPEG2000 decoding chip according to the control method in the step 2), and providing data input for the decoding chip.
2. An image coding and decoding and network transmission device based on FPGA is characterized by comprising:
1) an instruction acquisition module: the system comprises a host computer, a configuration module and a control module, wherein the configuration module is used for acquiring a configuration instruction sent by a user through the host computer;
2) the coding and decoding configuration module: the device is used for initializing JPEG2000 encoding and decoding chips of an encoding end and a decoding end and initializing a video A/D chip and a video D/A chip;
3) the network communication configuration module: the network communication chip is used for initializing the network communication chips of the encoding end and the decoding end;
4) the video image acquisition and coding module comprises: the system is used for converting the PAL system video and outputting digital video image data in a standard format; JPEG2000 encoding is carried out on the collected video image data;
5) a data sending module: the video image processing device is used for acquiring coded video image data from a JPEG2000 coding chip, caching the video image data and sending the video image data to a network communication chip of a coding end, and further sending the coded video image data to the Ethernet according to a TCP/IP protocol;
6) a data receiving module: the decoder is used for receiving network data messages through Ethernet according to a TCP/IP protocol, acquiring coded video image data from a decoder network communication chip, caching the video image data and then sending the video image data to a JPEG2000 decoding chip;
7) the video image decoding and restoring module: the digital video image decoding device is used for decoding video image data in a JPEG2000 encoding format, restoring a decoded digital video image into a PAL format through a video D/A chip and connecting display equipment to reproduce the video image;
modules 1), 2), 3), 5), 6) are characterized in that:
1) the modules 1), 2), 3), 5) and 6) are controlled based on the FPGA;
2) the encoding end board card comprises modules 1), 2), 3), 5), and the decoding end board card comprises modules 1), 2), 3), 6), the user realizes the encoding end user configuration instruction acquisition, the JPEG2000 encoding chip initialization, the encoding end network communication chip initialization, the encoding end function of acquiring encoded data from the JPEG2000 encoding chip, encoding data buffering and encoding data transmission by loading the encoding end FPGA firmware, and the user realizes the decoding end user configuration instruction acquisition, the JPEG2000 decoding chip initialization, the decoding end network communication chip initialization, the network message data acquisition and buffering and then transmitting to the decoding end function of the JPEG2000 decoding chip by loading the decoding end FPGA firmware;
the device comprises an encoding end FPGA, and specifically comprises:
1) the coding and network sending construction module comprises: the data channel is used for constructing a video image data code consisting of a code control unit, a code buffer unit and a network transmission control unit and transmitting the video image data code to a network to realize a data interface and a control interface among all units;
2) an encoding control unit: the data bus and the address bus are used for connecting the JPEG2000 coding chip, and the chip selection signal, the read enabling signal and the write enabling signal of the JPEG2000 coding chip are controlled to be output through an internal time sequence control circuit;
3) an encoding buffer unit: the device is used for setting an encoding buffer area and performing format conversion of encoded data;
4) a network transmission control unit: the data bus and the address bus are used for connecting the network communication chip of the encoding end, and the chip selection signal, the read enable signal and the write enable signal of the network communication chip are controlled to be output through an internal time sequence control circuit;
5) the encoding end configuration module: the device is used for accessing the serial port control chip and acquiring configuration parameters of a JPEG2000 encoding chip, a network communication chip and a video A/D chip of an encoding end according to a user instruction; reading an IP core with a ROM function in the FPGA to obtain coding firmware; realizing a data interface and a control interface between the video A/D chip and the coding control unit, the network sending control unit and the video A/D chip;
the device includes decoding end FPGA, specifically includes:
1) the decoding and network receiving construction module: the data channel is used for constructing a data channel which is formed by a network receiving control unit, a decoding buffer unit and a decoding control unit and used for receiving the video image data to be decoded, and a data interface and a control interface among all the units are realized;
2) a network reception control unit: the data bus and the address bus are used for connecting the network communication chip of the decoding end, and the chip selection signal, the read enabling signal and the write enabling signal of the network communication chip are controlled to be output through a time sequence control circuit in the FPGA;
3) a decoding buffer unit: the device is used for setting a decoding buffer area and carrying out format conversion of network message data;
4) a decoding control unit: the data bus and the address bus are used for connecting the JPEG2000 decoding chip, and the chip selection signal, the read enabling signal and the write enabling signal of the JPEG2000 decoding chip are controlled to be output through an internal time sequence control circuit;
5) a decoding end configuration module: the device is used for accessing the serial port control chip and acquiring configuration parameters of a JPEG2000 decoding chip, a network communication chip and a video D/A chip of a decoding end according to a user instruction; acquiring decoding firmware by reading an IP core with a ROM function in the FPGA; realizing a data interface and a control interface between the decoding control unit, the network receiving control unit and the video D/A chip;
the coding end plate card and the decoding end plate card are realized by the plate cards with the same hardware principle structure, and the main difference between the coding end plate card and the decoding end plate card is that dial switches on the plate cards are arranged differently, and FPGA firmware is different; on the board card, a user sets and downloads different FPGA firmware through a dial switch to realize different board card functions of an encoding end and a decoding end; the FPGA firmware is used for an encoding end or a decoding end and can be divided into: an encoding end firmware and a decoding end firmware;
the user sets through the dial switch: the video A/D chip outputs a digitized video image signal to the JPEG2000 encoding chip or the video D/A chip receives a video image data output from the JPEG2000 decoding chip.
3. The apparatus for image codec and network transmission based on FPGA of claim 2, wherein the modules 4) and 7) are characterized in that:
1) the modules 4) and 7) are based on JPEG2000 encoding and decoding chips with the same model;
2) the encoding end board card comprises a module 4), and the decoding end board card comprises a module 7), so that a user loads JPEG2000 encoding chip firmware or JPEG2000 decoding chip firmware through the FPGA to realize encoding or decoding of video images.
4. The device for image codec and network transmission based on FPGA of claim 2, wherein the coding buffer unit specifically functions as:
receiving the coded video image data output by the JPEG2000 coding chip, performing format conversion on the coded video image data, sending the coded video image data into an FIFO memory for buffering, reading the FIFO, and performing format conversion on the data once.
5. The FPGA-based image codec and network transmission device of claim 2, wherein the decoding buffer unit specifically functions as:
and receiving the network message data output by the network communication chip at the decoding end, performing format conversion on the network message data, sending the network message data into an FIFO memory for buffering, reading the FIFO, and performing format conversion on the data once.
CN201910938522.9A 2019-09-30 2019-09-30 Image coding and decoding and network transmission method and device based on FPGA Active CN110855996B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910938522.9A CN110855996B (en) 2019-09-30 2019-09-30 Image coding and decoding and network transmission method and device based on FPGA

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910938522.9A CN110855996B (en) 2019-09-30 2019-09-30 Image coding and decoding and network transmission method and device based on FPGA

Publications (2)

Publication Number Publication Date
CN110855996A CN110855996A (en) 2020-02-28
CN110855996B true CN110855996B (en) 2021-10-22

Family

ID=69596337

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910938522.9A Active CN110855996B (en) 2019-09-30 2019-09-30 Image coding and decoding and network transmission method and device based on FPGA

Country Status (1)

Country Link
CN (1) CN110855996B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111787360A (en) * 2020-07-30 2020-10-16 深圳市东明炬创电子有限公司 IP network-based streaming media coding and decoding equipment
CN113473144B (en) * 2021-07-15 2024-07-26 无锡思朗电子科技有限公司 YUV4:4:4 image transmission method
CN113709518B (en) * 2021-08-24 2023-11-28 天津津航计算技术研究所 Real-time video transmission mode design method based on RTSP protocol
CN114401437A (en) * 2022-01-10 2022-04-26 广东省翼瞰集成电路设计有限公司 Method, system and related equipment for realizing function configuration through image data

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1645414A (en) * 2005-01-26 2005-07-27 上海大学 JPEG 2000 image coding and transmitting method and system based on embedded platform
CN101540835A (en) * 2008-03-20 2009-09-23 海南三基科技有限公司 High-definition digital IP camera
WO2013051091A1 (en) * 2011-10-03 2013-04-11 リプレックス株式会社 Portable terminal, information terminal and server
CN103517066A (en) * 2013-09-24 2014-01-15 北京环境特性研究所 High-definition embedded video encoding and decoding system based on SoC
CN104954795A (en) * 2015-07-02 2015-09-30 东南大学 Image acquisition and transmission system based on JPEG2000
CN206332764U (en) * 2016-10-19 2017-07-14 天津中德应用技术大学 Unmanned plane image capturing system and unmanned plane based on FPGA
CN107852509A (en) * 2015-07-17 2018-03-27 诺基亚技术有限公司 Method and apparatus for coding and decoding image
CN108540798A (en) * 2017-12-29 2018-09-14 西安电子科技大学 A kind of realization system and method for JPEG2000 images coding

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102045557B (en) * 2009-10-20 2012-09-19 鸿富锦精密工业(深圳)有限公司 Video encoding and decoding method and video encoding device and decoding device thereof
CN102427531B (en) * 2011-10-18 2013-10-09 东南大学 Cross-layer interactive image quality continuous adjustable real-time video coding and decoding method
CN202424920U (en) * 2011-12-30 2012-09-05 上海威乾视频技术有限公司 Multipath multi-resolution video acquisition device based on FPGA (Field Programmable Gate Array)

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1645414A (en) * 2005-01-26 2005-07-27 上海大学 JPEG 2000 image coding and transmitting method and system based on embedded platform
CN101540835A (en) * 2008-03-20 2009-09-23 海南三基科技有限公司 High-definition digital IP camera
WO2013051091A1 (en) * 2011-10-03 2013-04-11 リプレックス株式会社 Portable terminal, information terminal and server
CN103517066A (en) * 2013-09-24 2014-01-15 北京环境特性研究所 High-definition embedded video encoding and decoding system based on SoC
CN104954795A (en) * 2015-07-02 2015-09-30 东南大学 Image acquisition and transmission system based on JPEG2000
CN107852509A (en) * 2015-07-17 2018-03-27 诺基亚技术有限公司 Method and apparatus for coding and decoding image
CN206332764U (en) * 2016-10-19 2017-07-14 天津中德应用技术大学 Unmanned plane image capturing system and unmanned plane based on FPGA
CN108540798A (en) * 2017-12-29 2018-09-14 西安电子科技大学 A kind of realization system and method for JPEG2000 images coding

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
JPEG2000 compression and decompression system based on Bayer image;Yan Yaqiong;《 2013 IEEE 11th International Conference on Electronic Measurement & Instruments》;20140220;全文 *
基于JPEG2000编码优化的小型图像压缩系统设计;陈超伟;《中国优秀硕士学位论文全文数据库 信息科技辑》;20190415;全文 *

Also Published As

Publication number Publication date
CN110855996A (en) 2020-02-28

Similar Documents

Publication Publication Date Title
CN110855996B (en) Image coding and decoding and network transmission method and device based on FPGA
CN107015927B (en) SoC-based device for supporting multiple SPI interface standard groups
US10642778B2 (en) Slave master-write/read datagram payload extension
US10579581B2 (en) Multilane heterogeneous serial bus
CN104239271A (en) Simulation image player realized by adopting FPGA and DSP
CN116841932B (en) Flexibly-connectable portable high-speed data access equipment and working method thereof
CN105611295A (en) System and method for implementing video capture, compression and transmission on SOC (System On Chip)
CN102521190A (en) Hierarchical bus system applied to real-time data processing
CN112256615B (en) USB conversion interface device
CN105049781A (en) Image processing system based on Field Programmable Gate Array (FPGA)
CN115733549B (en) PCIE network card, switching method of interface modes of PCIE network card, electronic equipment and storage medium
CN109407574B (en) Multi-bus selectable output control device and method thereof
CN210641011U (en) Embedded building visual intercom system
CN102541797B (en) Realizing method and system supporting multiple main machine interfaces
CN201378316Y (en) Universal input/output interface extension circuit and mobile terminal with same
CN205016216U (en) Display screen interface converting device and intelligent wrist -watch
CN210691255U (en) Synchronous awakening device
CN210839823U (en) Video processing card and card insertion type video processing apparatus
US9367495B1 (en) High speed integrated circuit interface
CN114756498A (en) Chip, master control chip, chip communication method, chip array and related equipment
CN101697147A (en) Reconfigurable I/O chip
CN111104353B (en) Multifunctional aviation bus interface card based on FPGA
CN114625610B (en) Multichannel space bus monitoring method based on single time axis transmission
CN112738777B (en) Near field communication device and method, readable storage medium and processor
CN112732604B (en) LVDS changes USB3.0 multi-functional adapter

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant