Professional Documents
Culture Documents
Ketan Mayer-Patel
Input
...
...
...
2
29-31 1111 15
31-35 001 0000 16
...
...
...
...
4
91-95 1111 31
95-103 010 0000 32
8
...
...
...
...
215-223 1111 47
223-239 011 0000 48
16
...
...
...
...
...
...
2
0001111 30
0010000 33
...
...
4
0011111 93
0100000
... 99
...
8
0101111 219
0110000 231
...
...
16
CS 294-9 :: Fall0111111
2003 471
Difference Encoding
0100
0011
0010
0001
0000
1001
1010
1011
1100
Differential-PCM (DPCM)
Exploit temporal redundancy in samples
Difference between 2 x-bit samples can be represented
with significantly fewer than x-bits
Transmit the difference (rather than the sample)
CS 294-9 :: Fall 2003
Slope Overload Problem
0100
0011
0010
0001
0000
1001
1010
Slope Overload
1011
1100
Quantizer Step-Size
Quantization Output Multiples
difference < 1 4 step_size 000 0.0
1 step_size < difference < 1 step_size 001 0.25
4 2
1 step_size < difference < 3 step_size 010 0.50
2 4
3 step_size < difference < step_size 011 0.75
4
step_size < difference < 5 4 step_size 100 1.0
5 step_size < difference < 3 step_size 101 1.25
4 2
3 step_size < difference < 7 step_size 110 1.5
2
CS 4294-9 :: Fall 2003
7 step_size < difference 111 1.75
4
IMA Step-size Table
Step Step Step Step Step
Index Size Index Size Index Size Index Size Index Size
0 7 18 41 36 230 54 1282 72 7132
1 8 19 45 37 253 55 1411 73 7845
2 9 20 50 38 279 56 1552 74 8630
3 10 21 55 39 307 57 1707 75 9493
4 11 22 60 40 337 58 1878 76 10442
5 12 23 66 41 371 59 2066 77 11487
6 13 24 73 42 408 60 2272 78 12635
7 14 25 80 43 449 61 2499 79 13899
8 16 26 88 44 494 62 2749 80 15289
9 17 27 97 45 544 63 3024 81 16818
10 19 28 107 46 598 64 3327 82 18500
11 21 29 118 47 658 65 3660 83 20350
12 23 30 130 48 724 66 4026 84 22358
13 25 31 143 49 796 67 4428 85 24623
14 28 32 157 50 876 68 4871 86 27086
15 31 33 173 51 963 69 5358 87 29794
16 34 34 190 52 1060 70 5894 88 32767
17 37 35 209 53 1166 71 6484
CS 294-9 :: Fall 2003
Adaptive Step-size Selection
16-bit + Difference
4-bit
PCM + Quantizer ADPCM
Sample difference
(in step-size units)
PCM Step-Size
Sample Adjuster
n1 +
Register + +
Dequantizer
Index
Range Limit Adjustment Step-Size Quantizer
Step-Size
Table
(0 to 88) + Table Index Output
Lookup Adjustment
Previous Lookup
Index Register
80
Sound Masking tone
Level 60
(dB) 40
Masked tone
20
Inaudible
0 Frequency
0.02 0.05 0.1 0.2 0.5 1 2 5 10 20 (kHz)
Psycho-
Frame Encoded
acoutstic Bitstream
Packing
Model
Ancillary Data
Amplitude 60
45
30
15
Frequency
0 (kHz)
Vocoding principles:
voice = formants + buzz pitch & intensity
voice estimated formants = residue
Linear Predictive Coding (LPC)
A sample is represented as a linear combination of p
previous samples
p
y(n) = ak y(n k) + G x x(n)
k=1