📄 mulaw.3
字号:
.\" Copyright (c) 1989-1990 Entropic Speech, Inc..\" Copyright (c) 1997 Entropic Research Laboratory, Inc. All rights reserved..\" @(#)mulaw.3 1.6 18 Apr 1997 ESI/ERL.ds ]W (c) 1997 Entropic Research Laboratory, Inc..TH MULAW 3\-ESPSsp 18 Apr 1997.SH "NAME".nflinear_to_mu - converts 14-bit integer data to 8-bit \fImu\fP-law compressed datamu_to_linear - converts 8-bit \fImu\fP-law compressed data to 14-bit data.fi.SH "SYNOPSIS"int.br.B "linear_to_mu(inbuf, outbuf, bufsize)".br.B " short *inbuf;".br.B " char *outbuf;".br.B " long bufsize;".br.spint.br.B "mu_to_linear(inbuf, outbuf, bufsize)".br.B " char *inbuf;".br.B " short *outbuf;.br.B " long bufsize;".br.sp.SH "DESCRIPTION".PPThese two functions do quasi-logarithmic companding (compression andexpansion) of 2-byte integer data by using the \fImu\fP-law with a valueof \fImu\fP = 255. This is the North American PCM standard [1].This compression law is linear for small amplitudesand logarithmic for large amplitudes.\fIInbuf\fP contains input data to be converted;\fIoutbuf\fP contains the converted data; and\fIbufsize\fP is the number of elements inthe \fIinbuf\fP array..PP\fILinear_to_mu\fR convertsinteger data with 14 significant bits (including sign) to 8 bits by usinga 15-segment, piecewise linear approximation to the \fImu\fP-law compression characteristic [1]. The conversion is done by using a binary search through an ordered list of input signal magnitudes.No checking of input data magnitudes is done by \fIlinear_to_mu\fP,so the calling routine should insure that all input samples havemagnitude <= 8159..PP\fIMu_to_linear\fR converts 8-bit, logarithmically compressed data to 14-bit linear data by usingthe piecewise-linear \fImu\fP-law approximation.A table lookup procedure is used to decode the magnitudes of the compressedvalues..SH "SEE ALSO".PP.SH "BUGS".PPNone Known..SH REFERENCES[1] John C. Bellamy, "Digital Telephony", Appendix B.SH "AUTHOR".PPManual page and program by David Burton.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -