Besides baseline sequential coding, the standard defines progressive and lossless modes. Progressive mode sends the coefficients of each block over several scans. Lossless mode skips the DCT and quantization.
Progressive Mode
The coefficients of each block are sent over several scans.
- Spectral selection
Early scans send the DC coefficients of all blocks. Later scans send bands of AC coefficients, such as indices 1 to 5, then 6 to 63. - Successive approximation
A coefficient is first sent with its most significant bits (shifted right by ). Later scans send the remaining bits 1 bit at a time.
An AC scan covers 1 component. The entropy coder adds an end-of-band run symbol that covers many blocks, so long runs of all-zero bands cost little. The compressed size is similar to the sequential mode and often slightly smaller.
Lossless Mode
No DCT or quantization. The predicted value of sample uses its left neighbour , upper neighbour and upper-left neighbour .
| Selector | Predictor |
|---|---|
| 1 | |
| 2 | |
| 3 | |
| 4 | |
| 5 | |
| 6 | |
| 7 |
The difference is coded as a category and extra bits, as with DC coefficients. The first sample of a row uses a fixed default prediction.