a_compress
A-law compression
Synopsis
#include <filter.h>
void a_compress(in, out, n)
const short in[];
short out[];
int n;
Description
The
a_compress
samples and performs A-law compression according to ITU recommenda-
tion G.711. Each sample is compressed to 8 bits and is returned in the
vector pointed to by
Algorithm
C(k)=a-law compression of A(k)
for k=0 to n-1
Domain
content of input array: -4096 to 4095
VisualDSP++ 3.5 C/C++ Compiler and Library Manual
for ADSP-219x DSPs
/* Input array
/* Output array
/* Number of elements to be compressed */
function takes a vector of linear 13-bit signed speech
.
out
DSP Run-Time Library
*/
*/
4-23
Need help?
Do you have a question about the VISUALDSP++ 3.5 and is the answer not in the manual?
Questions and answers