JPEG Codec Benchmarking on C6x
Used source code in The Data Compression Book
- Not a full-featured JFIF reader/writer
- Realizes JPEG core (DCT coefficients, Huffman codes)
Modifications to source code
- Image is stored in 64 x 64 global array at 16 bits/pixel
- Used 64 kbytes of on-chip RAM
- Image data is loaded at startup into memory
- Replaced file I/O routines with memory accesses
Implementation
- Parallelizable loops (DCT)
- Control dominated code (Huffman coding)