WarpPI/hardware/src/main/java/it/cavallium/warppi/TestJNI.java

23 lines
384 B
Java
Raw Normal View History

package it.cavallium.warppi;
public class TestJNI {
2017-12-13 22:34:15 +01:00
public TestJNI() {
2018-05-12 21:18:29 +02:00
2017-12-13 22:34:15 +01:00
}
2018-05-12 21:18:29 +02:00
2017-12-13 22:34:15 +01:00
static {
System.load("/boot/libpicalc.so");
}
private native MmapByteBuffer getDisplayBuffer();
private native void disposeDisplayBuffer();
public MmapByteBuffer retrieveBuffer() {
return getDisplayBuffer();
}
2018-05-12 21:18:29 +02:00
2017-12-13 22:34:15 +01:00
public void deleteBuffer() {
disposeDisplayBuffer();
}
}