In the above iteration, the Image acquisition module through the acquisition of images sent to the main program, encoding, because we collect the image is the JPEG format, in fact, it is encoded after the compression format, so there is no need to repeat the code, so skip the step; The following is the network Transport Subsystem Section, The aim is to transfer the captured images to the remote client's player and decode and play them through the network.
1. Design work Flow
A, initialization includes: 1) TCP socket initialization; 2) Register the event with Epoll;
b, handling the event, including processing when the socket receives the network packet, and processing after the socket has been sent out.
Phase 4-Dudangyimian \ project-Design of a video compression-based real-time monitoring system \sprint3-acquisition End transmission subsystem