#ifndef __RTSPNATIVECODECJNI_H__ #define __RTSPNATIVECODECJNI_H__ #define CAMERA_COUNT 2 extern "C" { void Java_RtspNativeCodec_init(JNIEnv *env, jclass clazz); // set the surface void Java_RtspNativeCodec_setSurface(JNIEnv *env, jclass clazz, jint cameraIdx, jobject surface); jboolean Java_RtspNativeCodec_createPlayer(JNIEnv* env, jclass clazz, jobject assetMgr, jint cameraIdx, jstring uri); // shut down the native media system void Java_RtspNativeCodec_shutdown(JNIEnv* env, jclass clazz, jint cameraIdx); typedef void (* Java_FaceCallback_func)(int cameraIdx, int count); jboolean Java_RtspNativeCodec_setFaceCallback(JNIEnv* env, jclass clazz, jobject assetMgr, jint cameraIdx, jstring func); jboolean Java_RtspNativeCodec_getFaceList(JNIEnv* env, jclass clazz, jobject assetMgr, jint cameraIdx, jbyteArray faceListPb); } #endif