ISO/IEC 10918-1 : 1993(E)
Any trailing zero bytes already written to the entropy-coded segment and not preceded by a X'FF' may, optionally, be
discarded. This is done in the Discard_final_zeros procedure. Stuffed zero bytes shall not be discarded.
Entropy coded segments are always followed by a marker. For this reason, the final zero bits needed to complete decoding
shall not be included in the entropy coded segment. Instead, when the decoder encounters a marker, zero bits shall be
supplied to the decoding procedure until decoding is complete. This convention guarantees that when a DNL marker is
used, the decoder will intercept it in time to correctly terminate the decoding procedure.
TISO1140-93/d052
Clear_final_bits
No
Yes
C = T
T = T + X'8000'
Done
T = C + A 1
T = T AND
T =
X'FFFF0000'
T < C
?
Figure D.14 Clear_final_bits procedure in Flush
Figure D.14 [D52], = 14 cm = 547.%
68
CCITT Rec. T.81 (1992 E)