| | |
| | | {
|
| | | public:
|
| | | PipeLine* pipeLineDecoderDetector;
|
| | | PipeLine* pipeLineAnalyzer;
|
| | | PipeLine* pipeLineRender;
|
| | |
|
| | | PL_RTSPClient_Config rtspConfig;
|
| | | PL_AndroidMediaCodecDecoder_Config amcdConfig;
|
| | | PL_AndroidSurfaceViewRender_Config asvrConfig;
|
| | | SensetimeFaceTrackConfig sftConfig;
|
| | | PL_Scale_Config plScaleCfg;
|
| | |
|
| | | int faceCount;
|
| | | int cameraIdx;
|
| | | bool faceCountChanged;
|
| | | JavaVM* javaVM;
|
| | | JNIEnv* javaEnv;
|
| | | jclass faceCallbackClazz;
|
| | |
| | |
|
| | | pthread_t decoder_thid;
|
| | | pthread_t live_daemon_thid;
|
| | | pthread_t jni_call_thid;
|
| | | pthread_mutex_t live_daemon_mut;
|
| | | bool running;
|
| | | volatile bool killed;
|
| | |
| | | std::string fontPath;
|
| | |
|
| | | CameraWrapper() :
|
| | | pipeLineDecoderDetector(nullptr), pipeLineAnalyzer(nullptr), pipeLineRender(nullptr), rtspConfig(), amcdConfig(), asvrConfig(), sftConfig(),
|
| | | pipeLineDecoderDetector(nullptr), pipeLineRender(nullptr), rtspConfig(), amcdConfig(), asvrConfig(),
|
| | | cameraIdx(0), javaVM(nullptr), javaEnv(nullptr), faceCallbackClazz(0), faceCallbackFunc(0), windowRender(nullptr), windowDecode(nullptr),
|
| | | decoder_thid(0), live_daemon_thid(0), live_daemon_mut(), running(false), killed(false), lastAliveTime(0),
|
| | | decoder_thid(0), live_daemon_thid(0),jni_call_thid(0), live_daemon_mut(), running(false), killed(false), lastAliveTime(0),
|
| | | faceCacheLocked(false), faceCache(),
|
| | | plplContext(), faceLabels(), fontPath()
|
| | | {
|
| | |
| | | private:
|
| | | static void* decoder_thd(void *arg);
|
| | | static void* live_daemon_thd(void *arg);
|
| | | static void* jni_call_thd(void *arg);
|
| | |
|
| | | bool resetPl();
|
| | | bool initPl_DecoderPl();
|