background image
ISO/IEC 10918-1 : 1993(E)
Table F.4 ­ Statistical model for DC coefficient coding
Context-index
Value
Coding decision
S0
DC_Context(Da)
V
=
0
SS
S0
+
1
Sign of V
SP
S0
+
2
Sz < 1 if V > 0
SN
S0
+
3
Sz < 1 if V < 0
X1
20
Sz < 2
X2
X1
+
1
Sz < 4
X3
X1
+
2
Sz < 8
.
.
.
.
.
.
X15
X1
+
14
Sz < 2
15
M2
X2
+
14
Magnitude bits if Sz < 4
M3
X3
+
14
Magnitude bits if Sz < 8
.
.
.
.
.
.
M15
X15
+
14
Magnitude bits if Sz < 2
15
F.1.4.4.1.4
Default conditioning for DC statistical model
The bounds, L and U, for determining the conditioning category have the default values L
=
0 and U
=
1. Other bounds
may be set using the DAC (Define Arithmetic coding Conditioning) marker segment, as described in Annex B.
F.1.4.4.1.5
Initial conditions for DC statistical model
At the start of a scan and at the beginning of each restart interval, the difference for the previous DC value is defined to be
zero in determining the conditioning state.
F.1.4.4.2
Statistical model for coding the AC coefficients
As shown in Table F.5, each statistics area for AC coding consists of a contiguous set of 245 statistics bins. Three bins are
used for each value of the zig-zag index K, and two sets of 28 additional bins X2,...,X15,M2,...,M15 are used for coding
the magnitude category and magnitude bits.
The value of SE (and also S0, SP and SN) is determined by the zig-zag index K. Since K is in the range 1 to 63, the
lowest value for SE is 0 and the largest value for SP is 188. SS is not assigned a value in AC coefficient coding, as the
signs of the coefficients are coded with a fixed probability value of approximately 0.5 (Qe
=
X'5A1D', MPS
=
0).
The value of X2 is given by AC_Context(K). This gives X2
=
189 when K
Kx and X2
=
217 when K > Kx, where Kx is
defined using the DAC marker segment (see B.2.4.3).
Note that a X1 statistics bin is not used in this sequence. Instead, the 63
×
1 array of statistics bins for the magnitude
category is used for two decisions. Once the magnitude bound has been determined ­ at statistics bin Xn, for example ­ a
single statistics bin, Mn, is used to code the magnitude bit sequence for that bound.
F.1.4.4.2.1
Default conditioning for AC coefficient coding
The default value of Kx is 5. This may be modified using the DAC marker segment, as described in Annex B.
F.1.4.4.2.2
Initial conditions for AC statistical model
At the start of a scan and at each restart, all statistics bins are re-initialized to the standard default value described in
Annex D.
CCITT Rec. T.81 (1992 E)
101
[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]