| | |
| | | import android.graphics.drawable.Drawable;
|
| | | import android.util.Log;
|
| | | import android.view.Surface;
|
| | | import android.view.SurfaceHolder;
|
| | | import android.widget.ImageButton;
|
| | | import android.graphics.Bitmap;
|
| | | import android.widget.ImageView;
|
| | |
| | | */
|
| | |
|
| | | class NativeImgIdx {
|
| | | public int st_track_id;
|
| | | public int offset;
|
| | | public int size;
|
| | | public int type;
|
| | |
| | |
|
| | | public static native void init();
|
| | | public static native void setLocalIP(String ipaddr);
|
| | | public static native void setSurface(int cameraIdx, Surface surface);
|
| | | public static native void setSurface(int cameraIdx, Surface surfaceRender);
|
| | | 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 ArrayList<NativeImg> getFaceImages(int cameraIdx);
|
| | |
|
| | | public static native void dbgFaceAdd(NativeImg faceImage);
|
| | | public static native String dbgGetLog();
|
| | | public static native void dbgSetStfaceLicense(String lic);
|
| | |
|
| | | //public static native void dbgReadTexture();
|
| | |
|
| | | public static native void setCaptureSurface(Surface surfaceCapture);
|
| | | public static native void startCapturePlayer(String uri);
|
| | | public static native void stopCapturePlayer();
|
| | | public static native ArrayList<NativeImg> getCaptureImages();
|
| | | public static native void teleCall(String phoneNumber);
|
| | | public static native void teleHang();
|
| | | public static native void teleShutdown();
|
| | |
|
| | | public static native void setFaceLabel(int cameraIdx, int stTrackId, String phoneNumber);
|
| | |
|
| | | public static int COMPANY_ID = 1001;
|
| | |
|
| | |
| | | {
|
| | | Log.i("@@@", "cameraIdx=" + cameraIdx +
|
| | | ", i=" + i +
|
| | | ", st_track_id=" + faceImages.get(i).st_track_id+
|
| | | ", size=" + faceImages.get(i).size+
|
| | | ", w=" + faceImages.get(i).width +
|
| | | ", h=" + faceImages.get(i).height +
|