mediaLib Library Functions mlib_SignalADPCM2Bits2Linear(3MLIB)
NAME
mlib_SignalADPCM2Bits2Linear - adaptive differential pulse
code modulation (ADPCM)SYNOPSIS
cc [ flag... ] file... -lmlib [ library... ]
#include
mlib_status mlib_SignalADPCM2Bits2Linear(mlib_s16 *pcm,
const mlib_u8 *adpcm, void *state, mlib_s32 n);
DESCRIPTION
The mlib_SignalADPCM2Bits2Linear() function performs adap-
tive differential pulse code modulation (ADPCM) in compli-
ance with the ITU (former CCITT) G.721, G.723, and G.726 specifications. It converts data from G.723 or G.726 16kbps2-bit ADPCM to 16-bit linear PCM format.
PARAMETERS
The function takes the following arguments: pcm Linear PCM sample array. adpcm ADPCM code array. state Internal structure of the codec. 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 attri-
butes:SunOS 5.11 Last change: 2 Mar 2007 1
mediaLib Library Functions mlib_SignalADPCM2Bits2Linear(3MLIB)
____________________________________________________________
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
|_____________________________|_____________________________|
| Interface Stability | Committed ||_____________________________|_____________________________|
| MT-Level | MT-Safe |
|_____________________________|_____________________________|
SEE ALSO
mlib_SignalADPCM3Bits2Linear(3MLIB),
mlib_SignalADPCM4Bits2Linear(3MLIB),
mlib_SignalADPCM5Bits2Linear(3MLIB),
mlib_SignalADPCMFree(3MLIB), mlib_SignalADPCMInit(3MLIB),
mlib_SignalLinear2ADPCM2Bits(3MLIB),
mlib_SignalLinear2ADPCM3Bits(3MLIB),
mlib_SignalLinear2ADPCM4Bits(3MLIB),
mlib_SignalLinear2ADPCM5Bits(3MLIB), attributes(5)
SunOS 5.11 Last change: 2 Mar 2007 2