man pages section 3: Multimedia Library Functions

Exit Print View

Updated: July 2014
 
 

mlib_SignaluLaw2Linear (3MLIB)

Name

mlib_SignaluLaw2Linear - ITU G.711 m-law and A-law compression and decompression

Synopsis

cc [ flag... ] file... –lmlib [ library... ]
#include <mlib.h>

mlib_status mlib_SignaluLaw2Linear(mlib_s16 *pcm, 
     const mlib_u8 *ucode, mlib_s32 n);

Description

The mlib_SignaluLaw2Linear() function performs ITU G.711 m-law and A-law compression and decompression in compliance with the ITU (formerly CCITT) G.711 specification.

Parameters

The function takes the following arguments:

pcm

Linear PCM sample array.

ucode

m-law code array.

n

Number of samples in the input 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 also

mlib_SignalALaw2Linear(3MLIB), mlib_SignalALaw2uLaw(3MLIB), mlib_SignalLinear2ALaw(3MLIB), mlib_SignalLinear2uLaw(3MLIB), mlib_SignaluLaw2ALaw(3MLIB), attributes(5)