mlib_SignalLinear2uLaw(3MLmediaLib Library Functimlib_SignalLinear2uLaw(3MLIB)NAMEmlib_SignalLinear2uLaw - ITU G.711 m-law and A-law compression and
decompression
SYNOPSIS
cc [ flag... ] file... -lmlib [ library... ]
#include <mlib.h>
mlib_status mlib_SignalLinear2uLaw(mlib_u8 *ucode,
const mlib_s16 *pcm, mlib_s32 n);
DESCRIPTION
The mlib_SignalLinear2uLaw() function performs ITU G.711 m-law and A-
law compression and decompression in compliance with the ITU (Former
CCITT) G.711 specification.
PARAMETERS
The function takes the following arguments:
ucode m-law code array.
pcm Linear PCM sample array.
n Number of samples in the source array.
RETURN VALUES
The function returns MLIB_SUCCESS if successful. Otherwise it returns
MLIB_FAILURE.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
┌─────────────────────────────┬─────────────────────────────┐
│ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
├─────────────────────────────┼─────────────────────────────┤
│Interface Stability │Committed │
├─────────────────────────────┼─────────────────────────────┤
│MT-Level │MT-Safe │
└─────────────────────────────┴─────────────────────────────┘
SEE ALSOmlib_SignalALaw2Linear(3MLIB), mlib_SignalALaw2uLaw(3MLIB), mlib_Sig‐
nalLinear2ALaw(3MLIB), mlib_SignaluLaw2ALaw(3MLIB), mlib_Signalu‐
Law2Linear(3MLIB), attributes(5)SunOS 5.10 2 Mar 2007 mlib_SignalLinear2uLaw(3MLIB)