A class which implements ITU-T (formerly CCITT) Recomendation G711 "Pulse Code Modulation (PCM) of Voice Frequencies". More...
#include <G711.h>
Static Public Member Functions | |
| static uint8_t | ALawEncode (int16_t pcm16) |
| static int | ALawDecode (uint8_t alaw) |
| static uint8_t | ULawEncode (int16_t pcm16) |
| static int | ULawDecode (uint8_t ulaw) |
| static uint8_t | ALawToULaw (uint8_t alaw) |
| static uint8_t | ULawToALaw (uint8_t ulaw) |
| static unsigned | ALawEncode (uint8_t *dst, int16_t *src, size_t srcSize) |
| static unsigned | ALawDecode (int16_t *dst, const uint8_t *src, size_t srcSize) |
| static unsigned | ULawEncode (uint8_t *dst, int16_t *src, size_t srcSize) |
| static unsigned | ULawDecode (int16_t *dst, const uint8_t *src, size_t srcSize) |
| static unsigned | ALawToULaw (uint8_t *dst, const uint8_t *src, size_t srcSize) |
| static unsigned | ULawToALaw (uint8_t *dst, const uint8_t *src, size_t srcSize) |
A class which implements ITU-T (formerly CCITT) Recomendation G711 "Pulse Code Modulation (PCM) of Voice Frequencies".
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.
| int G711::ALawDecode | ( | uint8_t | alaw | ) | [static] |
| int G711::ULawDecode | ( | uint8_t | ulaw | ) | [static] |
Encode a buffer of 16 bit uniform PCM values into A-Law values
| dst | Pointer to location to store A-Law encoded values | |
| src | Pointer to the buffer of 16 bit uniform PCM values to be encoded | |
| srcSize | The size, in bytes, of the buffer at src |
Decode a buffer of A-Law values into 16 bit uniform PCM values
| dst | Pointer to location to store decoded 16 bit uniform PCM values | |
| src | Pointer to the buffer of A-Law values to be decoded | |
| srcSize | The size, in bytes, of the buffer at src |
Encode a buffer of 16 bit uniform PCM values into u-Law values
| dst | Pointer to location to store u-Law encoded values | |
| src | Pointer to the buffer of 16 bit uniform PCM values to be encoded | |
| srcSize | The size, in bytes, of the buffer at src |
Decode a buffer of u-Law values into 16 bit uniform PCM values
| dst | Pointer to location to store decoded 16 bit uniform PCM values | |
| src | Pointer to the buffer of u-Law values to be decoded | |
| srcSize | The size, in bytes, of the buffer at src |
Convert a buffer of A-Law values into u-law values.
| dst | Pointer to location to store u-law values | |
| src | Pointer to the buffer of A-Law values to be converted | |
| srcSize | The size, in bytes, of the buffer at src |
Convert a buffer of u-Law values into A-law values.
| dst | Pointer to location to store A-law values | |
| src | Pointer to the buffer of u-Law values to be converted | |
| srcSize | The size, in bytes, of the buffer at src |
1.6.1