
342 VI GPGPU
before Huffman coding is applied. Coefficient symbols are sequentially variable
length encoded (VLE) and concatenated into a JPEG bit stream. Special marker
symbols are used in the following conditions:
1. for every preceding 16 zeros of an AC coefficient,
2. when an additional 0x00 byte is appended directly after bytes that equals
0xFF,
3. to indicate end of block (EOB) or end of image (EOI).
Further entropy coding details are beyond the scope of this chapter.
2.2 Implementation
Based on the description in Section 2.1.1, this section describes the implemen-
tation of a baseline JPEG encoder using DirectX 11.0 and Shader Model 5.0.
The encoder