Identification about JPEG coding

xiaoxiao2021-04-10  522

This is my first time I wrote blog, welcome to support! After the answer, I have n'thing to do now, I wrote some things about graduation design, my graduation design is about image compression, mainly is JPEG encoding work.

JPEG's file format online is a lot, I have said not much here. In the write file data stream, if the write byte is 0xFF, then pay attention, if the byte is the beginning of the data stream is not the beginning of segment, then it is then written to 0x00. I didn't add this at that time, I spent a few days to change this. When I started coding, I felt complicated, and later decomposed it into a simple question, it was simple. The first is to decompose the pixel matrix into an MCU according to the sampling ratio, and then operate to the MCU. Decomposing the MCU into DU, finally encodes a DU, when writing to the file, because of the use of Huffman encoding, each time you want to write. The write file is written by byte, so wait until one byte is written, then save the unwritten bit, wait until the next time is calculated.

I have no language level, I write so much, welcome everyone to correct, thank you! !

转载请注明原文地址:https://www.9cbs.com/read-133345.html

New Post(0)