|
RTS API Documentation
1.10.11
|
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Macros | |
| #define | ULAW_BIAS 0x84 /* Bias for linear code. */ |
| #define | ALAW_AMI_MASK 0x55 |
Functions | |
| static __inline__ int | top_bit (unsigned int bits) |
| static __inline__ int | bottom_bit (unsigned int bits) |
| static __inline__ uint8_t | linear_to_ulaw (int linear) |
| Encode a linear sample to u-law. More... | |
| static __inline__ int16_t | ulaw_to_linear (uint8_t ulaw) |
| Decode an u-law sample to a linear value. More... | |
| static __inline__ uint8_t | linear_to_alaw (int linear) |
| Encode a linear sample to A-law. More... | |
| static __inline__ int16_t | alaw_to_linear (uint8_t alaw) |
| Decode an A-law sample to a linear value. More... | |
| uint8_t | alaw_to_ulaw (uint8_t alaw) |
| Transcode from A-law to u-law, using the procedure defined in G.711. More... | |
| uint8_t | ulaw_to_alaw (uint8_t ulaw) |
| Transcode from u-law to A-law, using the procedure defined in G.711. More... | |
| #define ALAW_AMI_MASK 0x55 |
Definition at line 273 of file g711.h.
Referenced by alaw_to_linear(), and linear_to_alaw().
| #define ULAW_BIAS 0x84 /* Bias for linear code. */ |
Definition at line 198 of file g711.h.
Referenced by linear_to_ulaw(), and ulaw_to_linear().
|
static |
Decode an A-law sample to a linear value.
| alaw | The A-law sample to decode. |
Definition at line 311 of file g711.h.
References ALAW_AMI_MASK, alaw_to_ulaw(), and ulaw_to_alaw().
Referenced by switch_g711a_decode().
| uint8_t alaw_to_ulaw | ( | uint8_t | alaw | ) |
Transcode from A-law to u-law, using the procedure defined in G.711.
| alaw | The A-law sample to transcode. |
Definition at line 79 of file g711.c.
References alaw_to_ulaw_table.
Referenced by alaw_to_linear().
|
static |
Encode a linear sample to A-law.
| linear | The sample to encode. |
Definition at line 279 of file g711.h.
References ALAW_AMI_MASK, and top_bit().
Referenced by switch_g711a_encode().
|
static |
Encode a linear sample to u-law.
| linear | The sample to encode. |
Definition at line 204 of file g711.h.
References top_bit(), and ULAW_BIAS.
Referenced by switch_g711u_encode().
|
static |
| uint8_t ulaw_to_alaw | ( | uint8_t | ulaw | ) |
Transcode from u-law to A-law, using the procedure defined in G.711.
| ulaw | The u-law sample to transcode. |
Definition at line 86 of file g711.c.
References ulaw_to_alaw_table.
Referenced by alaw_to_linear().
|
static |
Decode an u-law sample to a linear value.
| ulaw | The u-law sample to decode. |
Definition at line 241 of file g711.h.
References ULAW_BIAS.
Referenced by switch_g711u_decode().
1.8.13