(see Figure F.7).

is coded, the context-index S is set to either SN or SP, establishing an initial value for Encode_log2_Sz.

increasing bound (which is a power of 2) in order to determine the position of the leading 1-bit. This establishes the

magnitude category in much the same way that the Huffman encoder generates a code for the value associated with the

difference category. The flow chart for this procedure is shown in Figure F.8.

are defined for DC coding in Table F.4 and for AC coding in Table F.5. In Figure F.8, M is the exclusive upper bound for

the magnitude and the abbreviations "SLL" and "SRL" refer to the shift-left-logical and shift-right-logical operations in

this case by one bit position. The SRL operation at the completion of the procedure aligns M with the most significant bit

of Sz (see Table F.3).

tree is 16 bits for the DC coefficient difference and 15 bits for the AC coefficients, including the sign bit.