Introduction - If you have any usage issues, please Google them yourself
Write your own jpeg compression, and write their own DCT and IDCT, did not use huffman coding, because too difficult, using run-length encoding, you can directly run the compression ratio to meet the requirements. Document details the pay code.