background image
ISO/IEC 10918-1 : 1993(E)
In Figure F.20, K is the index to the zig-zag sequence position. For the sequential scan, Kmin
=
1 and Se
=
63. The
decision at the top of the loop is the EOB decision. If the EOB occurs (D
=
1), the remaining coefficients in the block are
set to zero. The inner loop just below the EOB decoding decodes runs of zero coefficients. Whenever the coefficient is
non-zero, "Decode_V" decodes the sign and magnitude of the coefficient. After each non-zero coefficient is decoded, the
EOB decision is again decoded unless K
=
Se.
F.2.4.3
Decoding the binary decision sequence for non-zero DC differences and AC coefficients
Both the DC difference and the AC coefficients are represented as signed two's complement 16-bit integer values. The
decoding decision tree for these signed integer values is the same for both the DC and AC coding models. Note, however,
that the statistical models are not the same.
F.2.4.3.1
Arithmetic decoding of non-zero values
Denoting either DC differences or AC coefficients as V, the non-zero signed integer value of V is decoded by the
sequence shown in Figure F.21. This sequence first decodes the sign of V. It then decodes the magnitude category of V
(Decode_log2_Sz), and then decodes the low order magnitude bits (Decode_Sz_bits). Note that the value decoded for Sz
must be incremented by 1 to get the actual coefficient magnitude.
TISO1530-93/d091
Decode_V(S)
Decode_sign_of_V
Decode_log2_Sz
Decode_Sz_bits
V = Sz + 1
SIGN = 1
?
Yes
V = V
Done
Figure F.21 Sequence of procedures in decoding non-zero values of V
No
Figure F.21 [D91] = 15.5 cm = 606 %
114
CCITT Rec. T.81 (1992 E)
[1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14] [15] [16] [17] [18] [19] [20] [21] [22] [23] [24] [25] [26] [27] [28] [29] [30] [31] [32] [33] [34] [35] [36] [37] [38] [39] [40] [41] [42] [43] [44] [45] [46] [47] [48] [49] [50] [51] [52] [53] [54] [55] [56] [57] [58] [59] [60] [61] [62] [63] [64] [65] [66] [67] [68] [69] [70] [71] [72] [73] [74] [75] [76] [77] [78] [79] [80] [81] [82] [83] [84] [85] [86] [87] [88] [89] [90] [91] [92] [93] [94] [95] [96] [97] [98] [99] [100] [101] [102] [103] [104] [105] [106] [107] [108] [109] [110] [111] [112] [113] [114] [115] [116] [117] [118] [119] [120] [121] [122] [123] [124] [125] [126] [127] [128] [129] [130] [131] [132] [133] [134] [135] [136] [137] [138] [139] [140] [141] [142] [143] [144] [145] [146] [147] [148] [149] [150] [151] [152] [153] [154] [155] [156] [157] [158] [159] [160] [161] [162] [163] [164] [165] [166] [167] [168] [169] [170] [171] [172] [173] [174] [175] [176] [177] [178] [179] [180] [181] [182] [183] [184] [185] [186]