| | |
| | |
|
| | | 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);
|
| | |
|
| | | public static void init() {};
|
| | | public static void setSurface(int cameraIdx, Surface surface){};
|
| | | public static boolean createPlayer(int cameraIdx, String uri){return true;};
|
| | | public static void shutdown(int cameraIdx){};
|
| | | 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 boolean setFaceCallback(int cameraIdx, String func){return true;};
|
| | | public static void lockFace(int cameraIdx){};
|
| | | public static void releaseFace(int cameraIdx){};
|
| | | public static boolean getFaceList(int cameraIdx, byte[] faceListPb){return true;};
|
| | | public static boolean getFaceImages(int cameraIdx, byte[] faceImagesIdx, byte[] faceImages){return true;};
|
| | | 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);
|
| | |
|
| | | // public static void init() {};
|
| | | // public static void setSurface(int cameraIdx, Surface surface){};
|
| | | // public static boolean createPlayer(int cameraIdx, String uri){return true;};
|
| | | // public static void shutdown(int cameraIdx){};
|
| | | // // typedef void (* Java_com_example_nativecodec_NativeCodec_FaceCallback_func)(int cameraIdx, int count);
|
| | | // public static boolean setFaceCallback(int cameraIdx, String func){return true;};
|
| | | // public static void lockFace(int cameraIdx){};
|
| | | // public static void releaseFace(int cameraIdx){};
|
| | | // public static boolean getFaceList(int cameraIdx, byte[] faceListPb){return true;};//二进制
|
| | | // public static boolean getFaceImages(int cameraIdx, byte[] faceImagesIdx, byte[] faceImages){return true;};//图片
|
| | |
|
| | | }
|