| | |
| | | */
|
| | |
|
| | | class NativeImgIdx {
|
| | | public int st_track_id;
|
| | | public int offset;
|
| | | public int size;
|
| | | public int type;
|
| | |
| | |
|
| | | //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;
|
| | |
|
| | |
| | |
|
| | | for (int i = 0; i < c; i++)
|
| | | {
|
| | | Log.i("@@@", "cameraIdx=" + cameraIdx +
|
| | | ", i=" + i +
|
| | | ", size=" + faceImages.get(i).size+
|
| | | ", w=" + faceImages.get(i).width +
|
| | | ", h=" + faceImages.get(i).height +
|
| | | ", image[0]=" + faceImages.get(i).image[0] +
|
| | | ", image[1]=" + faceImages.get(i).image[1]);
|
| | | // 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 );
|
| | | //// ", image[0]=" + faceImages.get(i).image[0] +
|
| | | //// ", image[1]=" + faceImages.get(i).image[1]);
|
| | |
|
| | | if (i == 0)
|
| | | {
|
| | |
| | | //bitmap.copyPixelsFromBuffer(byteBuffer);
|
| | | //NativeCodec.setFaceDrawable(bitmap);
|
| | |
|
| | | NativeCodec.setFaceDrawable(faceImages.get(i));
|
| | | // NativeCodec.setFaceDrawable(faceImages.get(i));
|
| | | }
|
| | | setFaceLabel(cameraIdx+1, faceImages.get(i).st_track_id , "4444444edddddd");
|
| | | }
|
| | |
|
| | | //#todo fix setFacelable
|
| | |
|
| | | releaseFace(cameraIdx);
|
| | | }
|
| | |
|