Game Development Reference
In-Depth Information
AC 01
DC
0
1
5
6
14
15
27
28
2
4
7
13
16
26
29
42
3
8
12
17
25
30
41
43
9
11
18
24
31
40
44
53
10
19
23
32
39
45
52
54
20
22
33
38
46
51
55
60
21
34
37
47
50
56
59
61
35
36
48
49
57
58
62
63
AC 77
Figure 2.4. Zigzag sequence order.
first DC symbol includes the bit count and the second symbol includes the ampli-
tude information. The first AC symbol contains preceding zeros and the number
of bits needed to represent the second AC symbol, in which amplitude informa-
tion is stored.
Figure 2.5 illustrates how symbols are represented in memory,
A
B
Symbol 1 (8 bits)
Symbol 2 (16 bits)
A: Number of bits to represent value in B
B: DC i − DC i −1
(a) DC
A
B
C
Symbol 2 (16 bits)
A: Number of preceding zeros (Run-Length), stored in high nibble
B: Number of bits to represent AC coe cient, stored in low nibble
C: AC coe cient
Symbol 1 (8 bits)
(b) AC
Figure 2.5. Code symbol structure for (a) DC and (b) AC coe cients.
 
 
Search Nedrilad ::




Custom Search