#include <G711.h>
This encodes and decodes uniform PCM values to/from 8 bit A-law and u-Law values.
Note, the methods in this class use uniform PCM values which are of 16 bits precision, these are 'left justified' values corresponding to the 13 and 14 bit values described in G711.
Definition at line 53 of file G711.h.
Static Public Member Functions | |
| static IMPORT uint8_t | ALawEncode (int16_t pcm16) |
| static IMPORT int | ALawDecode (uint8_t alaw) |
| static IMPORT uint8_t | ULawEncode (int16_t pcm16) |
| static IMPORT int | ULawDecode (uint8_t ulaw) |
| static IMPORT uint8_t | ALawToULaw (uint8_t alaw) |
| static IMPORT uint8_t | ULawToALaw (uint8_t ulaw) |
| static IMPORT unsigned | ALawEncode (uint8_t *dst, int16_t *src, size_t srcSize) |
| static IMPORT unsigned | ALawDecode (int16_t *dst, const uint8_t *src, size_t srcSize) |
| static IMPORT unsigned | ULawEncode (uint8_t *dst, int16_t *src, size_t srcSize) |
| static IMPORT unsigned | ULawDecode (int16_t *dst, const uint8_t *src, size_t srcSize) |
| static IMPORT unsigned | ALawToULaw (uint8_t *dst, const uint8_t *src, size_t srcSize) |
| static IMPORT unsigned | ULawToALaw (uint8_t *dst, const uint8_t *src, size_t srcSize) |
|
|
Encode a single 16 bit uniform PCM value into an A-Law value
|
|
|
Encode a single A-Law value into a 16 bit uniform PCM value
|
|
|
Encode single 16 bit uniform PCM value into an u-Law value
|
|
|
Encode a single u-Law value into a 16 bit uniform PCM value
|
|
|
Convert a single A-Law value into a u-law value.
|
|
|
Convert a single u-Law value into an A-law value.
|
|
||||||||||||||||
|
Encode a buffer of 16 bit uniform PCM values into A-Law values
|
|
||||||||||||||||
|
Decode a buffer of A-Law values into 16 bit uniform PCM values
|
|
||||||||||||||||
|
Encode a buffer of 16 bit uniform PCM values into u-Law values
|
|
||||||||||||||||
|
Decode a buffer of u-Law values into 16 bit uniform PCM values
|
|
||||||||||||||||
|
Convert a buffer of A-Law values into u-law values.
|
|
||||||||||||||||
|
Convert a buffer of u-Law values into A-law values.
|
1.4.4