Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Special pages
Niidae Wiki
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
A-law algorithm
Page
Discussion
English
Read
Edit
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
View history
General
What links here
Related changes
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{Short description|Audio companding algorithm}} {{no footnotes|date=February 2013}} [[File:Comparison of A-law and μ-law compression on an input signal.svg|thumb|Comparison of [[A-law]] (blue) and [[μ-law]] (red) [[Dynamic range compression|compression]] on an input signal (green). Both axis use [[logarithmic scale]] in [[decibels]].|350x350px]] [[File:Plot of F(x) for A-Law for A = 87.6.svg|thumb|Plot of ''F''(''x'') for A-Law for ''A'' = 87.6|350x350px]] {{Listen | type = speech | header = Audio quality comparison | filename = Speech 12dB s16.flac | title = 16-bit linear PCM (reference/original) | filename2 = Speech 12dB alaw8.flac | title2 = 8-bit A-law PCM | filename3 = Speech 12dB u8.flac | title3 = 8-bit linear PCM }} An '''A-law algorithm''' is a standard [[companding]] algorithm, used in [[Europe]]an 8-bit [[PCM]] [[digital communications]] systems to optimize, i.e. modify, the [[dynamic range]] of an [[analog signal]] for digitizing. It is one of the two companding algorithms in the [[G.711]] standard from [[ITU-T]], the other being the similar [[μ-law algorithm|μ-law]], used in North America and Japan. For a given input <math>x</math>, the equation for A-law encoding is as follows: <math display="block"> F(x) = \sgn(x) \begin{cases} \dfrac{A |x|}{1 + \ln(A)}, & |x| < \dfrac{1}{A}, \\[1ex] \dfrac{1+ \ln(A |x|)}{1 + \ln(A)}, & \dfrac{1}{A} \leq |x| \leq 1, \end{cases} </math> where <math>A</math> is the compression parameter. In Europe, <math>A = 87.6</math>. A-law expansion is given by the inverse function: <math display="block"> F^{-1}(y) = \sgn(y) \begin{cases} \dfrac{|y| (1 + \ln(A))}{A}, & |y| < \dfrac{1}{1 + \ln(A)}, \\ \dfrac{e^{-1 + |y| (1 + \ln(A))}}{A}, & \dfrac{1}{1 + \ln(A)} \leq |y| < 1. \end{cases} </math> The reason for this encoding is that the wide [[dynamic range]] of [[Speech communication|speech]] does not lend itself well to efficient linear digital encoding. A-law encoding effectively reduces the dynamic range of the signal, thereby increasing the [[Channel coding|coding]] efficiency and resulting in a signal-to-[[distortion]] ratio that is superior to that obtained by linear encoding for a given number of bits. == Comparison to μ-law == The [[μ-law algorithm]] provides a slightly larger dynamic range than the A-law at the cost of worse proportional distortion for small signals. By convention, A-law is used for an international connection if at least one country uses it. == See also == * [[μ-law algorithm]] * [[Dynamic range compression]] * [[Signal compression]] * [[Companding]] * [[G.711]] * [[DS0]] * [[Tapered floating point]] == External links == * [http://www.cisco.com/en/US/tech/tk1077/technologies_tech_note09186a00801149b3.shtml Waveform Coding Techniques] - Has details of implementation (but note that the A-law equation is incorrect) * [https://github.com/deftio/companders A-law implementation in C-language with example code] {{Compression Methods}} [[Category:Audio codecs]] [[Category:Data compression]]
Summary:
Please note that all contributions to Niidae Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Encyclopedia:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Templates used on this page:
Template:Compression Methods
(
edit
)
Template:Listen
(
edit
)
Template:No footnotes
(
edit
)
Template:Short description
(
edit
)
Search
Search
Editing
A-law algorithm
Add topic