Replace the jpeg's huffman table to reduce the file size.
Mac 10.12.4 with gcc 5.0.0
Use 'make'.
- Put all baseline images and codes at the same folder.
- Type 'make run'.
- Or use "./jpgdecoder image_name.jpg".
- If the image size is over 2048, please increase the MAX_X and MAX_Y at header.
- Not finished yet,
huff.c
can generate a huffman table base on the input.
jpg_huffman_table.c
can now read in a jpeg file and write to bmp. - TODO: combine these two files to count how many times each codewords appears while reading the jpeg,
usdhuff.c
to generate new table, and substitute