Introduction - If you have any usage issues, please Google them yourself
First, use the TCP protocol to transmit data. Reason: better stability.
Two, the use of byte data stream for transmission, the reasons:
A: VB s String existence automatic Unicode conversion question, effects of speed
B: can directly send 8-bit byte data, Does not need to use Base64 encoding, thereby reducing the encoding time.
Three, the use of GIF-LZW compression algorithm for image compression. Rationale:
A: Run-Length Coding, Huffman compression algorithm compression ratio is too low
B: JPEG compression algorithm required too many bit computing, and computing a large quantity (MMX has specialized optimization algorithm), VB is not conducive to implementation
C: GIF-LZW compression algorithm compression ratio is better, and I have come up with efficient under VB grammar GIF-LZW compression/decompression algorithm.
Four, use the "orderly jitter" algorithm for color quantization. Rationale: "orderly jitter" must deal with the results of reg