1mlib_SignaluLaw2ALaw(3MLIB)mediaLib Library Functionsmlib_SignaluLaw2ALaw(3MLIB)
2
3
4
6 mlib_SignaluLaw2ALaw - ITU G.711 m-law and A-law compression and decom‐
7 pression
8
10 cc [ flag... ] file... -lmlib [ library... ]
11 #include <mlib.h>
12
13 mlib_status mlib_SignaluLaw2ALaw(mlib_u8 *acode,
14 const mlib_u8 *ucode, mlib_s32 n);
15
16
18 The mlib_SignaluLaw2ALaw() function performs ITU G.711 m-law and A-law
19 compression and decompression in compliance with the ITU (formerly
20 CCITT) G.711 specification.
21
23 The function takes the following arguments:
24
25 acode A-law code array.
26
27
28 ucode m-law code array.
29
30
31 n Number of samples in the input array.
32
33
35 The function returns MLIB_SUCCESS if successful. Otherwise it returns
36 MLIB_FAILURE.
37
39 See attributes(5) for descriptions of the following attributes:
40
41
42
43
44 ┌─────────────────────────────┬─────────────────────────────┐
45 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
46 ├─────────────────────────────┼─────────────────────────────┤
47 │Interface Stability │Committed │
48 ├─────────────────────────────┼─────────────────────────────┤
49 │MT-Level │MT-Safe │
50 └─────────────────────────────┴─────────────────────────────┘
51
53 mlib_SignalALaw2Linear(3MLIB), mlib_SignalALaw2uLaw(3MLIB), mlib_Sig‐
54 nalLinear2ALaw(3MLIB), mlib_SignalLinear2uLaw(3MLIB), mlib_Signalu‐
55 Law2Linear(3MLIB), attributes(5)
56
57
58
59SunOS 5.11 2 Mar 2007 mlib_SignaluLaw2ALaw(3MLIB)