updated open binary jni

This commit is contained in:
2017-05-17 17:50:39 +08:00
parent 616889f931
commit 95e23fa4d0
11 changed files with 58 additions and 4 deletions

View File

@@ -24,6 +24,8 @@ public class IRDecode {
private native int irOpen(int category, int subCate, String fileName);
private native int irOpenBinary(int category, int subCate, byte[] binaries, int binLength);
private native int[] irDecode(int keyCode, ACStatus acStatus, int changeWindDirection);
private native void irClose();
@@ -45,10 +47,14 @@ public class IRDecode {
return mInstance;
}
public int openBinary(int category, int subCate, String fileName) {
public int openFile(int category, int subCate, String fileName) {
return irOpen(category, subCate, fileName);
}
public int openBinary(int category, int subCate, byte[] binaries, int binLength) {
return irOpenBinary(category, subCate, binaries, binLength);
}
public int[] decodeBinary(int keyCode, ACStatus acStatus, int changeWindDir) {
return irDecode(keyCode, acStatus, changeWindDir);
}