public class Inlines extends InlinesConstants
SKP_SIN_APPROX_CONST0, SKP_SIN_APPROX_CONST1, SKP_SIN_APPROX_CONST2, SKP_SIN_APPROX_CONST3
Constructor and Description |
---|
Inlines() |
Modifier and Type | Method and Description |
---|---|
(package private) static int |
SKP_DIV32_varQ(int a32,
int b32,
int Qres)
Divide two int32 values and return result as int32 in a given Q-domain.
|
(package private) static int |
SKP_INVERSE32_varQ(int b32,
int Qres)
Invert int32 value and return result as int32 in a given Q-domain.
|
(package private) static void |
SKP_Silk_CLZ_FRAC(int in,
int[] lz,
int[] frac_Q7)
get number of leading zeros and fractional part (the bits right after the leading one).
|
(package private) static int |
SKP_Silk_CLZ64(long in)
count leading zeros of long.
|
(package private) static int |
SKP_Silk_COS_APPROX_Q24(int x)
Cosine approximation; an input of 65536 corresponds to 2 * pi
The relative error is below 1e-5
|
(package private) static int |
SKP_Silk_norm16(short a)
returns the number of left shifts before overflow for a 16 bit
number (ITU definition with norm(0)=0).
|
(package private) static int |
SKP_Silk_norm32(int a)
returns the number of left shifts before overflow for a 32 bit
number (ITU definition with norm(0)=0)
|
(package private) static int |
SKP_Silk_SIN_APPROX_Q24(int x)
Sine approximation; an input of 65536 corresponds to 2 * pi
Uses polynomial expansion of the input to the power 0, 2, 4 and 6
The relative error is below 1e-5
|
(package private) static int |
SKP_Silk_SQRT_APPROX(int x)
Approximation of square root
Accuracy: < +/- 10% for output values > 15
< +/- 2.5% for output values > 120
|
static int SKP_Silk_CLZ64(long in)
in.
- inputstatic void SKP_Silk_CLZ_FRAC(int in, int[] lz, int[] frac_Q7)
in
- lz
- frac_Q7
- static int SKP_Silk_SQRT_APPROX(int x)
x
- static int SKP_Silk_norm16(short a)
a
- static int SKP_Silk_norm32(int a)
a
- static int SKP_DIV32_varQ(int a32, int b32, int Qres)
a32
- numerator (Q0)b32
- denominator (Q0)Qres
- Q-domain of result (>= 0)static int SKP_INVERSE32_varQ(int b32, int Qres)
b32
- denominator (Q0)Qres
- Q-domain of result (> 0)static int SKP_Silk_SIN_APPROX_Q24(int x)
x
- static int SKP_Silk_COS_APPROX_Q24(int x)
x
-
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.