package com.bsk.zhangbo.demoforbsk.util; import android.view.Surface; /** * Created by houxiao on 2017/3/21 0021. */ public class RtspFaceNative { public static native void init(); public static native void setSurface(int cameraIdx, Surface surface); public static native boolean createPlayer(int cameraIdx, String uri); public static native void shutdown(int cameraIdx); // typedef void (* Java_com_example_nativecodec_NativeCodec_FaceCallback_func)(int cameraIdx, int count); public static native boolean setFaceCallback(int cameraIdx, String func); public static native void lockFace(int cameraIdx); public static native void releaseFace(int cameraIdx); public static native boolean getFaceList(int cameraIdx, byte[] faceListPb); public static native boolean getFaceImages(int cameraIdx, byte[] faceImagesIdx, byte[] faceImages); }