Escolar Documentos
Profissional Documentos
Cultura Documentos
Z. Aliyazicioglu
Cal Poly Pomona Electrical & Computer Engineering Dept. EGR 544-2 2
1
Temporal Waveform Coding
Most common used methods:
Pulse-code modulation (PCM)
Differential pulse-code modulation (DPCM)
Delta modulation(DM)
Cal Poly Pomona Electrical & Computer Engineering Dept. EGR 544-2 3
1
if q
p( q) = 2 2
0 o.w.
= 2 R
Cal Poly Pomona Electrical & Computer Engineering Dept. EGR 544-2 4
2
Pulse-code modulation (PCM)
Mean square value of the quantization error (or noise) power is
/2 1 2 1 2 R
E ( q2 ) = q 2 p( q) dq = = 2
/ 2 12 12
Mean square value of the quantization error power in dB
1 2 1
E ( q 2 ) dB = 10log = 10log 2 2 R = 10.8 6 R [dB]
12 12
Quantization noise decreases by 6dB/bit
Quantization noise for 8 bit -58.8 dB
It can be measured by signal-to-quantization noise ratio (SQNR) in dB
P (average power of source signal)
SQNR = 10log [dB]
E(q 2 )
Cal Poly Pomona Electrical & Computer Engineering Dept. EGR 544-2 6
3
Example of -law
=20
=100
Cal Poly Pomona Electrical & Computer Engineering Dept. EGR 544-2 7
p
xn = ai xn 1
i =1
xn is weighted linear combination of the past p samples and {ai}
are the predicted coefficient that are selected to minimize the
error between xn and xn
Cal Poly Pomona Electrical & Computer Engineering Dept. EGR 544-2 8
4
Differential pulse-code modulation (DPCM)
The mean square error between xn and xn is given
p
2
p = E (e ) = E xn ai xni
2
n
i =1
p p p
= E ( xn2 ) 2 ai E ( xn xn i ) + a a E( x
i j x
n i n j )
i =1 i =1 j =1
p
To minimize p set a (i j ) = ( j )
i =1
i
Cal Poly Pomona Electrical & Computer Engineering Dept. EGR 544-2 9
p = xn xn = qn
xn = ai xn i
i =1 Quantization error
Encoder
Cal Poly Pomona Electrical & Computer Engineering Dept. EGR 544-2 10
5
Differential pulse-code modulation (DPCM)
To low-pass filter
Decoder
Cal Poly Pomona Electrical & Computer Engineering Dept. EGR 544-2 11
Delta Modulation
en = ( xn xn )
To transmitter
Predicted (estimated)
value qn = en en
xn = xn1 = xn 1 + en 1 = en ( xn xn )
Output
Source Decoder
Cal Poly Pomona Electrical & Computer Engineering Dept. EGR 544-2 12
6
Delta Modulation
Equivalent realization of Delta modulation
To transmitter
Source Encoder
Output
Source Decoder
Cal Poly Pomona Electrical & Computer Engineering Dept. EGR 544-2 13
Delta Modulation
Granular noise
Slope-overload
distortion
Cal Poly Pomona Electrical & Computer Engineering Dept. EGR 544-2 14
7
Delta Modulation
Alternative solution is variable step size: Step size is increased when
the waveform has steep slope and decreased when the waveform has a
relatively small slope
n = n 1 = k2
Slope-overload
where 0 < <1 distortion
k1 k2 > 1
Cal Poly Pomona Electrical & Computer Engineering Dept. EGR 544-2 15
Source: http://www.owlnet.rice.edu/~elec301/Projects99/adda/dmod.html
Cal Poly Pomona Electrical & Computer Engineering Dept. EGR 544-2 16
8
Spectral Waveform Coding
Filter the source output signal into a number of frequency
subband and separately encode the signal in each subband.
Each subband can be encoded in time-domain waveform or
Each subband can be encoded in frequency-domain waveform
Subband Coding
Cal Poly Pomona Electrical & Computer Engineering Dept. EGR 544-2 17
Subband Coding
Example:
The Low band split into two using another pair of QMFs
Low: 0-800Hz, and High: 800-1600Hz.
The Low band split into two again using another pair of QMFs
Low: 0-400Hz, and High: 400-800Hz.
Cal Poly Pomona Electrical & Computer Engineering Dept. EGR 544-2 18
9
Adaptive Transform Coding (ATC)
The source signal is sampled and subdivided into frames of Nf
samples.
The data in each frame is transformed into the spectral domain
for coding
Cal Poly Pomona Electrical & Computer Engineering Dept. EGR 544-2 19
G
H ( z) = p
1 ak z k
k =1
Cal Poly Pomona Electrical & Computer Engineering Dept. EGR 544-2 20
10
Model-based Source Coding
Suppose that the input sequence id denoted by vn , n=0,1,2,
Then the output sequence of the digital filter satisfy the
difference equation
p
xn = ak zn k + Gvn
k =1
Cal Poly Pomona Electrical & Computer Engineering Dept. EGR 544-2 22
11