class Util
extends java.lang.Object
Constructor and Description |
---|
Util() |
Modifier and Type | Method and Description |
---|---|
(package private) static void |
copy(float[] x,
float[] y,
int L)
Copies an array from the specified x array, to the specified y array.
|
(package private) static void |
copy(float[] x,
int x_offset,
float[] y,
int L)
Copies an array from the specified source array,
beginning at the specified destination array.
|
(package private) static void |
copy(float[] x,
int x_offset,
float[] y,
int y_offset,
int L)
Copies an array from the specified source array,
beginning at the specified position,
to the specified position of the destination array.
|
(package private) static int |
fread(short[] data,
int length,
java.io.InputStream fp)
Read
data from fp . |
(package private) static void |
fwrite(short[] data,
int length,
java.io.OutputStream fp)
Write
data in fp |
(package private) static short |
random_g729()
Return random short.
|
(package private) static void |
set_zero(float[] x,
int L)
Assigns the value zero to element of the specified array of floats.
|
(package private) static void |
set_zero(float[] x,
int offset,
int length)
Assigns the value zero to element of the specified array of floats.
|
static void set_zero(float[] x, int L)
x
- (o) : vector to clearL
- (i) : length of vectorstatic void set_zero(float[] x, int offset, int length)
x
- (o) : vector to clearoffset
- (i) : offset of vectorlength
- (i) : length of vectorstatic void copy(float[] x, float[] y, int L)
x
- (i) : input vectory
- (o) : output vectorL
- (i) : vector lengthstatic void copy(float[] x, int x_offset, float[] y, int L)
x
- (i) : input vectorx_offset
- (i) : input vector offsety
- (o) : output vectorL
- (i) : vector lengthstatic void copy(float[] x, int x_offset, float[] y, int y_offset, int L)
x
- (i) : input vectorx_offset
- (i) : input vector offsety
- (o) : output vectory_offset
- (i) : output vector offsetL
- (i) : vector lengthstatic short random_g729()
static void fwrite(short[] data, int length, java.io.OutputStream fp) throws java.io.IOException
data
in fp
data
- length
- fp
- java.io.IOException
static int fread(short[] data, int length, java.io.InputStream fp) throws java.io.IOException
data
from fp
.data
- length
- fp
- java.io.IOException
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.