JPEG autoscaling in memory
This program currently performs the following using CPU only:
- Read JPEG file headers
- Decode huffman coded bitstream
- Dequantization
- Inverse Discrete Cosine Transform (DCT)
- Convert YCbCr to RGB
- Write RGB values to bitmap file
The implementation is heavily inspired by the following resources:
- CCITT specs: https://www.w3.org/Graphics/JPEG/itu-t81.pdf
- Everything You Need to Know About JPEG Youtube series: https://www.youtube.com/watch?v=CPT4FSkFUgs&list=PLpsTn9TA_Q8VMDyOPrDKmSJYt1DLgDZU4
STATS=1 Turn on statistics for measuring time of each stage