webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Functions
g711.c File Reference
#include "g711.h"
#include "webrtc/typedefs.h"

Functions

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...
 

Function Documentation

◆ alaw_to_ulaw()

uint8_t alaw_to_ulaw ( uint8_t  alaw)

Transcode from A-law to u-law, using the procedure defined in G.711.

Parameters
alawThe A-law sample to transcode.
Returns
The best matching u-law value.

◆ ulaw_to_alaw()

uint8_t ulaw_to_alaw ( uint8_t  ulaw)

Transcode from u-law to A-law, using the procedure defined in G.711.

Parameters
alawThe u-law sample to transcode.
Returns
The best matching A-law value.