🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

5 total messages Started by Vince Sat, 22 Aug 1992 19:07
mu-law encoding - definition?
#636
Author: Vince
Date: Sat, 22 Aug 1992 19:07
20 lines
1100 bytes
Hello.

I have a set of data which is mu-compressed from
12 bits to 8 bits.  I need to maniulate it in
its 12-bit form and I'm not sure what the
conversion process between the two is.  All of
the books I've looked in for an explanation have
a few graphs displaying the wonderful properties
of mu-encoding but no direct explanation of how to
go from one to another.

Does anyone out there know the definitions of the 
encoding algorithm and wish to tell me what it is?
If it makes a difference, this data was taken off 
of the audio port of a Sun Sparcstation (/dev/audio).

Thanks.

-P
Re: mu-law encoding - definition?
#637
Author: Barry Arons
Date: Sat, 22 Aug 1992 22:47
3 lines
666 bytes
Sun has already done all the hard work for you.  A set of macros is provided for converting between u-law and linear data.  Do a "man  audio_ulaw2linear" on your SparcStation.

Barry.
Re: mu-law encoding - definition?
#638
Author: Ron Zuckerman
Date: Sun, 23 Aug 1992 00:18
31 lines
1736 bytes
In article 2600@athena.mit.edu, parasite@athena.mit.edu (Vince) writes:
>
>Does anyone out there know the definitions of the 
>encoding algorithm and wish to tell me what it is?
>If it makes a difference, this data was taken off 
>of the audio port of a Sun Sparcstation (/dev/audio).
>

If you have the directory "/usr/demo/SOUND", you already have
the means to convert mu-law to linear and vise-versa.  If your
manipulating data using a C program, you'll need to include the
following:

#include <multimedia/ulaw2linear.h>

For a description of the conversion functions, execute:

man -M /usr/demo/SOUND audio_ulaw2linear

To compile, you'll need to add /usr/demo/SOUND to your include
path.  To link, you'll need link in /usr/demo/SOUND/libaudio.a

Hope this helps.
---
------------------------------------------------------------------
| Ron Zuckerman          E-mail: ronzu@isu.comm.mot.com          |
| Phone: (708)538-3134   FAX: (708)538-2818                      |
------------------------------------------------------------------
| "A madman got us into this, and it's beginning to look as if   |
|  only a madman can get us out." -- Chekov                      |
------------------------------------------------------------------
Re: mu-law encoding - definition?
#719
Author: Mike Gingell
Date: Wed, 26 Aug 1992 17:25
52 lines
2490 bytes
In article <1992Aug22.190716.2600@athena.mit.edu> parasite@athena.mit.edu (Vince) writes:
>
>I have a set of data which is mu-compressed from
>12 bits to 8 bits.  I need to maniulate it in
>its 12-bit form and I'm not sure what the
>conversion process between the two is.  All of
>the books I've looked in for an explanation have
>a few graphs displaying the wonderful properties
>of mu-encoding but no direct explanation of how to
>go from one to another.
>
>Does anyone out there know the definitions of the 
>encoding algorithm and wish to tell me what it is?
>If it makes a difference, this data was taken off 
>of the audio port of a Sun Sparcstation (/dev/audio).
>

mu-law is a code developed by Bell Labs about 30 years ago
for use in PCM telephony. It compresses a 13 bit dynamic
range into an 8 bit pseudo logarithmic form. The MSB is the sign
the next 3 bits are a scale factor and the least 4 are the
magnitude.  The spec is defined in various Bell & ATT documents
as well as CCITT Rec. G.711 and probably countless text books.

To paraphrase the table in CCITT G711

Segment  # of intervals     value at               code
                         segment end points
                           8159                  10000000
   8      16 * 256                               1000xxxx
                           4063                             
   7      16 * 128                               1001xxxx
                           2015
   6      16 * 64         
                            991
   5      16 * 32
                            479
   4      16 * 16
                            223
   3      16 * 8
                             95
   2      16 * 4
                             31
   1      15 * 2
           1 * 1
                              0                   11111111

This just shows the positive side - screwy isn't it?

Mike Gingell, Alcatel, Raleigh, NC USA  (919) 850-6444
UUCP:       ...!mcnc!aurgate!aurfs1!gingell
Internet:   gingell%aurfs1%aurgate@mcnc.org
Re: mu-law encoding - definition?
#732
Author: Sepehr Mehranbanzad
Date: Sat, 29 Aug 1992 21:27
28 lines
1859 bytes
In article <1992Aug22.190716.2600@athena.mit.edu> parasite@athena.mit.edu (Vince) writes:

>I have a set of data which is mu-compressed from
>12 bits to 8 bits.  I need to maniulate it in
>its 12-bit form and I'm not sure what the
>conversion process between the two is.  All of
>the books I've looked in for an explanation have
>a few graphs displaying the wonderful properties
>of mu-encoding but no direct explanation of how to
>go from one to another.
>
>Does anyone out there know the definitions of the 
>encoding algorithm and wish to tell me what it is?
>If it makes a difference, this data was taken off 
>of the audio port of a Sun Sparcstation (/dev/audio).
>


You can find a very good descriptioin of the comparsion alogrithm and how to implement
the encoder/decoder in the "TI Digital Signal Processing Applications with the TMS320
Family" pages 169 to 198.  This approach has the advantage of not requiring to do any
table look up.

=======================================================================================
Sepehr Mehrabanzad
Signal Processing Research Group		v-mail:(617) 821-7523
Motorola/Codex					e-mail:sepehr@falstaff.dev.cdx.mot.com
=======================================================================================
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads