Wireshark 4.7.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
g711.h
Go to the documentation of this file.
1
12#ifndef __G711_H__
13#define __G711_H__
14
15#include "ws_symbol_export.h"
16
17#ifdef __cplusplus
18extern "C" {
19#endif /* __cplusplus */
20
30WS_DLL_PUBLIC unsigned char linear2alaw(int pcm_val);
31
40WS_DLL_PUBLIC int alaw2linear(unsigned char a_val);
41
51WS_DLL_PUBLIC unsigned char linear2ulaw(int pcm_val);
52
61WS_DLL_PUBLIC int ulaw2linear(unsigned char u_val);
62
63#ifdef __cplusplus
64}
65#endif /* __cplusplus */
66
67#endif /* __G711_H__ */
WS_DLL_PUBLIC int ulaw2linear(unsigned char u_val)
Converts a u-law encoded value to a 16-bit linear PCM value.
Definition g711.c:249
WS_DLL_PUBLIC unsigned char linear2alaw(int pcm_val)
Converts a 16-bit linear PCM value to 8-bit A-law encoded format.
Definition g711.c:115
WS_DLL_PUBLIC int alaw2linear(unsigned char a_val)
Converts an 8-bit A-law encoded value to a 16-bit linear PCM value.
Definition g711.c:150
WS_DLL_PUBLIC unsigned char linear2ulaw(int pcm_val)
Converts a 16-bit linear PCM value to u-law encoded format.
Definition g711.c:207