non-gpl-bits/g711.c File Reference

#include <inttypes.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <tgmath.h>
#include <assert.h>
#include "spandsp/g711.h"

Functions

uint8_t alaw_to_ulaw (uint8_t alaw)
 Transcode from A-law to u-law, using the procedure defined in G.711.
uint8_t ulaw_to_alaw (uint8_t ulaw)
 Transcode from u-law to A-law, using the procedure defined in G.711.

Detailed Description


Function Documentation

uint8_t alaw_to_ulaw ( uint8_t  alaw  ) 

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

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

uint8_t ulaw_to_alaw ( uint8_t  ulaw  ) 

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

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


Generated on Tue Oct 7 20:25:51 2008 for spandsp by  doxygen 1.5.6