Home Units Hierarchy Routines All identifiers

Unit unaG711

DescriptionUsesClasses, Interfaces, Objects and RecordsFunctions and ProceduresTypesConstantsVariables

Description

G711 implementation based on ITU source code

1.0 First release

Uses

Overview

Functions and Procedures

procedure alaw_compress(lseg: long; linbuf: pInt16Array; logbuf: pointer);
procedure alaw_expand(lseg: long; logbuf: pointer; linbuf: pInt16Array);
procedure ulaw_compress(lseg: long; linbuf: pInt16Array; logbuf: pointer);
procedure ulaw_expand(lseg: long; logbuf: pointer; linbuf: pInt16Array);

Description

Functions and Procedures

procedure alaw_compress(lseg: long; linbuf: pInt16Array; logbuf: pointer);

==========================================================================

FUNCTION NAME: alaw_compress

DESCRIPTION: ALaw encoding rule according ITU-T Rec. G.711.

PROTOTYPE: void alaw_compress(long lseg, short *linbuf, short *logbuf)

PARAMETERS: lseg: (In) number of samples linbuf: (In) buffer with linear samples (only 12 MSBits are taken into account) logbuf: (Out) buffer with compressed samples (8 bit right justified, without sign extension)

RETURN VALUE: none.

HISTORY: 10.Dec.91 1.0 Separated A-law compression function

==========================================================================

procedure alaw_expand(lseg: long; logbuf: pointer; linbuf: pInt16Array);

==========================================================================

FUNCTION NAME: alaw_expand

DESCRIPTION: ALaw decoding rule according ITU-T Rec. G.711.

PROTOTYPE: void alaw_expand(long lseg, short *logbuf, short *linbuf)

PARAMETERS: lseg: (In) number of samples logbuf: (In) buffer with compressed samples (8 bit right justified, without sign extension) linbuf: (Out) buffer with linear samples (13 bits left justified)

RETURN VALUE: none.

HISTORY: 10.Dec.91 1.0 Separated A-law expansion function

============================================================================

procedure ulaw_compress(lseg: long; linbuf: pInt16Array; logbuf: pointer);

==========================================================================

FUNCTION NAME: ulaw_compress

DESCRIPTION: Mu law encoding rule according ITU-T Rec. G.711.

PROTOTYPE: void ulaw_compress(long lseg, short *linbuf, short *logbuf)

PARAMETERS: lseg: (In) number of samples linbuf: (In) buffer with linear samples (only 12 MSBits are taken into account) logbuf: (Out) buffer with compressed samples (8 bit right justified, without sign extension)

RETURN VALUE: none.

HISTORY: 10.Dec.91 1.0 Separated mu-law compression function

==========================================================================

procedure ulaw_expand(lseg: long; logbuf: pointer; linbuf: pInt16Array);

==========================================================================

FUNCTION NAME: ulaw_expand

DESCRIPTION: Mu law decoding rule according ITU-T Rec. G.711.

PROTOTYPE: void ulaw_expand(long lseg, short *logbuf, short *linbuf)

PARAMETERS: lseg: (In) number of samples logbuf: (In) buffer with compressed samples (8 bit right justified, without sign extension) linbuf: (Out) buffer with linear samples (14 bits left justified)

RETURN VALUE: none.

HISTORY: 10.Dec.91 1.0 Separated mu law expansion function

============================================================================

Author

(c) 2012 Lake of Soft


Generated by PasDoc 0.12.1 on 2012-10-09