background image
ISO/IEC 10918-1 : 1993(E)
Table F.5 ­ Statistical model for AC coefficient coding
Context-index
Value
Coding decision
SE
3
×
(K ­ 1)
K
=
EOB
S0
SE
+
1
V
=
0
SS
Fixed estimate
Sign of V
SN,SP
S0
+
1
Sz
<
1
X1
S0
+
1
Sz
<
2
X2
AC_Context(K)
Sz
<
4
X3
X2
+
1
Sz
<
8
.
.
.
.
.
.
X15
X2
+
13
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.5
Extended sequential DCT-based Huffman encoding process for 12-bit sample precision
This process is identical to the sequential DCT process for 8-bit precision extended to four Huffman table destinations as
documented in F.1.3, with the following changes.
F.1.5.1
Structure of DC code table for 12-bit sample precision
The two's complement difference magnitudes are grouped into 16 categories, SSSS, and a Huffman code is created for
each of the 16 difference magnitude categories.
The Huffman table for DC coding (see Table F.1) is extended as shown in Table F.6.
Table F.6 ­ Difference magnitude categories for DC coding
SSSS
Difference values
12
­4 095..­2 048,2 048..4 095
13
­8 191..­4 096,4 096..8 191
14
­16 383..­8 192,8 192..16 383
15
­32 767..­16 384,16 384..32 767
F.1.5.2
Structure of AC code table for 12-bit sample precision
The general structure of the code table is extended as illustrated in Figure F.11. The Huffman table for AC coding is
extended as shown in Table F.7.
102
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]