-
Notifications
You must be signed in to change notification settings - Fork 0
/
FerrumEngine.java
79 lines (57 loc) · 2.55 KB
/
FerrumEngine.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
package ferrum;
public class FerrumEngine implements AutoCloseable {
static {
System.loadLibrary("ferrum");
}
private long engineHandle;
public FerrumEngine() {
this(null);
}
public FerrumEngine(String path) {
engineHandle = init(path);
}
private static native long init(String path);
public void close() {
close(engineHandle);
}
private static native void close(long engineHandle);
public float[] vect_bB(String fn, float[] a) {
return vect_bB(fn, a, 0, 1);
}
public float[] vect_bfB(String fn, float[] a, float sa) {
return vect_bfB(fn, a, 0, 1, sa);
}
public float[] vect_fbB(String fn, float sa, float[] a) {
return vect_fbB(fn, sa, a, 0, 1);
}
public float[] vect_bbB(String fn, float[] a, float[] b) {
return vect_bbB(fn, a, 0, 1, b, 0, 1);
}
public float[] vect_bBB(String fn, float[] a, float[] b) {
return vect_bBB(fn, a, 0, 1, b, 0, 1);
}
public float[] vect_bffffB(String fn, float[] a, float sa, float sha, float sb, float shb) {
return vect_bffffB(fn, a, 0, 1, sa, sha, sb, shb);
}
public float[] vect_bbffffB(String fn, float[] a, float[] b, float sa, float sha, float sb, float shb) {
return vect_bbffffB(fn, a, 0, 1, b, 0, 1, sa, sha, sb, shb);
}
public native float[] vect_bB(String fn, float[] a, int offset_a, int stride_a);
public native float[] vect_bfB(String fn, float[] a, int offset_a, int stride_a, float sa);
public native float[] vect_fbB(String fn, float sa, float[] a, int offset_a, int stride_a);
public native float[] vect_bbB(String fn,
float[] a, int offset_a, int stride_a,
float[] b, int offset_b, int stride_b);
public native float[] vect_bBB(String fn,
float[] a, int offset_a, int stride_a,
float[] b, int offset_b, int stride_b);
public native float[] vect_bffffB(String fn,
float[] a, int offset_a, int stride_a,
float sa, float sha,
float sb, float shb);
public native float[] vect_bbffffB(String fn,
float[] a, int offset_a, int stride_a,
float[] b, int offset_b, int stride_b,
float sa, float sha,
float sb, float shb);
}