OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:ulaw
(Results
1 - 2
of
2
) sorted by null
/frameworks/base/core/java/android/speech/srec/
UlawEncoderInputStream.java
28
* InputStream which transforms 16 bit pcm data to
ulaw
data.
52
// from '
ulaw
' in wikipedia
84
int
ulaw
;
local
86
ulaw
= pcm <= 0 ? 0xff :
97
ulaw
= -1 <= pcm ? 0x7f :
108
ulawBuf[ulawOffset++] = (byte)
ulaw
;
114
* The return value can be used to set
ulaw
encoder scaling.
131
* Create an InputStream which takes 16 bit pcm data and produces
ulaw
data.
133
* @param max pcm value corresponding to maximum
ulaw
value.
/frameworks/base/voip/jni/rtp/
G711Codec.cpp
74
int
ulaw
= ~ulaws[i];
local
75
int exponent = (
ulaw
>> 4) & 0x07;
76
int mantissa =
ulaw
& 0x0F;
78
samples[i] = (
ulaw
< 0 ? -sample : sample);
Completed in 37 milliseconds