sujinwen
2017-07-20 aef0f0a61b17fa13ef006a3b8a4f337c7492dccd
VisitFace/DemoForBsk/app/src/main/java/com/luxand/FSDK.java
@@ -1,8 +1,3 @@
/*
 * FaceSDK Library Interface
 * Copyright (C) 2015 Luxand, Inc.
 */
package com.luxand;
public class FSDK
@@ -11,10 +6,7 @@
      System.loadLibrary("stlport_shared");
      System.loadLibrary("fsdk");
   }
   // Error codes
   public static final int FSDKE_OK = 0;
   public static final int FSDKE_FAILED = -1;
   public static final int FSDKE_NOT_ACTIVATED = -2;
@@ -44,15 +36,10 @@
   public static final int FSDKE_UNSUPPORTED_TEMPLATE_VERSION = -26;
   public static final int FSDKE_CAMERA_INDEX_DOES_NOT_EXIST = -27;
   // Facial feature count
   public static final int FSDK_FACIAL_FEATURE_COUNT = 66;
   
   // Types
    public static class FSDK_VIDEOCOMPRESSIONTYPE {
        public static final int FSDK_MJPEG = 0;
        public int type;
@@ -65,11 +52,11 @@
      public int mode;
   }
   
   public static class HImage {  //to pass himage "by reference"
   public static class HImage {
      protected int himage;
   }
   
   public static class HCamera {  //to pass hcamera "by reference"
   public static class HCamera {
      protected int hcamera;
   }
   
@@ -108,8 +95,6 @@
      public byte template[] = new byte[13324];
   }
   // Facial features
   public static final int FSDKP_LEFT_EYE = 0;
   public static final int FSDKP_RIGHT_EYE   = 1;
@@ -181,7 +166,6 @@
   
   public static native int ActivateLibrary(String LicenseKey);
   //public static native int GetHardware_ID(String HardwareID[]); //not implemented
   public static native int GetLicenseInfo(String LicenseInfo[]);
   public static native int SetNumThreads(int Num);
   public static native int GetNumThreads(int Num[]);