| | |
| | | #ifndef __CameraWrapper_H__
|
| | | #define __CameraWrapper_H__
|
| | |
|
| | | #define MAX_FACE 5
|
| | | #define MAX_FACE_WIDTH 240
|
| | | #define MAX_FACE_HEIGHT 320
|
| | | #include "FaceCache.h"
|
| | |
|
| | | #include <PipeLine.h>
|
| | | #include <PL_RTSPClient.h>
|
| | | #include <PL_AndroidMediaCodecDecoder.h>
|
| | | #include <PL_AndroidSurfaceViewRender.h>
|
| | | #include <PL_SensetimeFaceTrack.h>
|
| | |
|
| | | //#include "looper.h"
|
| | |
| | | #include <media/NdkMediaCodec.h>
|
| | |
|
| | | #include <pthread.h>
|
| | |
|
| | | #define MAX_FACE 5
|
| | | #define MAX_FACE_WIDTH 240
|
| | | #define MAX_FACE_HEIGHT 320
|
| | | #include <jni.h>
|
| | |
|
| | | class CameraWrapper
|
| | | {
|
| | |
| | | PipeLine* pipeLine;
|
| | |
|
| | | PL_RTSPClient_Config rtspConfig;
|
| | | PL_AndroidMediaCodecDecoder_Config amcdConfig;
|
| | | SensetimeFaceTrackConfig sftConfig;
|
| | | |
| | | PL_AndroidMediaCodecDecoder_Config amcdConfig;
|
| | | PL_AndroidSurfaceViewRender_Config asvrConfig;
|
| | | SensetimeFaceTrackConfig sftConfig;
|
| | |
|
| | | int cameraIdx;
|
| | | jmethodID faceCallback;
|
| | | ANativeWindow* window;
|
| | | |
| | | JavaVM* javaVM;
|
| | | JNIEnv* javaEnv;
|
| | | jclass faceCallbackClazz;
|
| | | jmethodID faceCallbackFunc;
|
| | | void* windowRender;
|
| | | void* windowDecode;
|
| | |
|
| | | pthread_t live_daemon_thid;
|
| | | bool running;
|
| | |
|
| | |
| | | FaceCache faceCache;
|
| | |
|
| | | CameraWrapper() :
|
| | | pipeLine(nullptr), rtspConfig(), amcdConfig(), sftConfig(), |
| | | cameraIdx(0), faceCallback(0), window(nullptr), |
| | | pipeLine(nullptr), rtspConfig(), amcdConfig(), sftConfig(), asvrConfig(),
|
| | | cameraIdx(0), javaVM(nullptr), javaEnv(nullptr), faceCallbackClazz(0), faceCallbackFunc(0), windowRender(nullptr), windowDecode(nullptr),
|
| | | live_daemon_thid(0), running(false),
|
| | | faceCacheLocked(false), faceCache()
|
| | | {
|