mlib_signalulaw2alaw(3mlib) [opensolaris man page]
mlib_SignaluLaw2ALaw(3MLIB) mediaLib Library Functions mlib_SignaluLaw2ALaw(3MLIB)NAME
mlib_SignaluLaw2ALaw - ITU G.711 m-law and A-law compression and decompression
SYNOPSIS
cc [ flag... ] file... -lmlib [ library... ]
#include <mlib.h>
mlib_status mlib_SignaluLaw2ALaw(mlib_u8 *acode,
const mlib_u8 *ucode, mlib_s32 n);
DESCRIPTION
The mlib_SignaluLaw2ALaw() 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:
acode A-law code 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_Signalu-
Law2Linear(3MLIB), attributes(5)SunOS 5.11 2 Mar 2007 mlib_SignaluLaw2ALaw(3MLIB)
Check Out this Related Man Page
mlib_SignalADPCM3Bits2Linear(3MLIB) mediaLib Library Functions mlib_SignalADPCM3Bits2Linear(3MLIB)NAME
mlib_SignalADPCM3Bits2Linear - adaptive differential pulse code modulation (ADPCM)
SYNOPSIS
cc [ flag... ] file... -lmlib [ library... ]
#include <mlib.h>
mlib_status mlib_SignalADPCM3Bits2Linear(mlib_s16 *pcm,
const mlib_u8 *adpcm, void *state, mlib_s32 n);
DESCRIPTION
The mlib_SignalADPCM3Bits2Linear() function performs adaptive differential pulse code modulation (ADPCM) in compliance with the ITU (former
CCITT) G.721, G.723, and G.726 specifications. It converts data fromG.723 or G.726 24kbps 3-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 attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Interface Stability |Committed |
+-----------------------------+-----------------------------+
|MT-Level |MT-Safe |
+-----------------------------+-----------------------------+
SEE ALSO mlib_SignalADPCM2Bits2Linear(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 2 Mar 2007 mlib_SignalADPCM3Bits2Linear(3MLIB)
i have lots of files in /law/prod and /law/dev, such as AP20PD, AP20WS, AP20.scr, AP20.rpt
if i am in /law DIR
find . -name AP20PD, found in /law/prod and /law/dev
i want to head -1 AP20PD from both location and >> /tmp/test.log
can i use find and head in one line ?
----------... (1 Reply)
how do i modify the following:
echo "jaba law welcome no jaba law sorry now jaba law" | awk '{s+=gsub(/jaba law/,"jaba law")} END {print s}'
so that it shows me the actual phrase it found matching the strings i specified?
something like:
jaba law jaba law jaba law (4 Replies)
Does anyone know how to check if a .wav file is encoded with "A law" or "Mu law" in Linux and PC? I tried sox --i filename.wav on my PC, but I don't think it tell you if the file is A law or Mu law. Thanks. (2 Replies)