Chinaunix首页 | 论坛 | 博客
  • 博客访问: 183530
  • 博文数量: 5
  • 博客积分: 1410
  • 博客等级: 上尉
  • 技术积分: 310
  • 用 户 组: 普通用户
  • 注册时间: 2007-04-07 21:52
文章分类

全部博文(5)

文章存档

2009年(2)

2008年(3)

我的朋友

分类:

2008-07-11 05:12:01

u-LAW and A-LAW definitions

A-law and u-law are companding schemes used in telephone network to get more dynamics to the 8 bit samples that is available with linear coding. Typically 12..14 bit samples (linear scale) sampled at 8 kHz sample are companded to 8 bit (logarithmic scale) for transmission over 64 kbit/s data channel. In the receiving end the data is then converter back to linear scale (12..14 bit) and played back. converted back

u-law definition

u-LAW (pronounced mu-LAW) is

          sgn(m)   (     |m |)       |m |
   y=    ------- ln( 1+ u|--|)       |--| =< 1
         ln(1+u)   (     |mp|)       |mp|
Another definition for mu-law I have seen
                          ln(1+255 |x|)
        output = sgn(x) ---------------------
                          ln(1+255)

        x = normalized input ( between -1 and 1)
        255 = compression parameter
        sgn(x) = sign (+/-) of x

a-law definition

A-LAW is
     |     A    (m )                 |m |    1
     |  ------- (--)                 |--| =< - 
     |  1+ln A  (mp)                 |mp|    A     
   y=|
     | sgn(m) (        |m |)    1    |m |
     | ------ ( 1+ ln A|--|)    - =< |--| =< 1
     | 1+ln A (        |mp|)    A    |mp|

Values of u=100 and 255, A=87.6, mp is the Peak message value, m is the current quantised message value. (The formulae get simpler if you substitute x for m/mp and sgn(x) for sgn(m); then -1 <= x <= 1.)

Converting from u-LAW to A-LAW is in a sense "lossy" since there are quantizing errors introduced in the conversion.

"..the u-LAW used in North America and Japan, and the A-LAW used in Europe and the rest of the world and international routes.."

References:

  • Modern Digital and Analog Communication Systems, B.P.Lathi., 2nd ed. ISBN 0-03-027933-X
  • Transmission Systems for Communications, Fifth Edition, by Members of the Technical Staff at Bell Telephone Laboratories, Bell Telephone Laboratories, Incorporated, Copyright 1959, 1964, 1970, 1982
阅读(3053) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~