| | |
| | | #include <PL_AndroidSurfaceViewRender.h>
|
| | | #include <PL_SensetimeFaceTrack.h>
|
| | | #include <PL_Paint.h>
|
| | | #include <PL_Queue.h>
|
| | |
|
| | | //#include "looper.h"
|
| | | #include <android/native_window_jni.h>
|
| | |
| | | PipeLine* pipeLineAnalyzer;
|
| | | PipeLine* pipeLineRender;
|
| | |
|
| | | PL_RTSPClient_Config rtspConfig;
|
| | | PL_Queue* queueFrame;
|
| | |
|
| | | PL_RTSPClient_Config rtspConfig;
|
| | | PL_AndroidMediaCodecDecoder_Config amcdConfig;
|
| | | PL_AndroidSurfaceViewRender_Config asvrConfig;
|
| | | SensetimeFaceTrackConfig sftConfig;
|
| | |
| | | void* windowRender;
|
| | | void* windowDecode;
|
| | |
|
| | | pthread_t live_daemon_thid;
|
| | | pthread_t decoder_thid;
|
| | | pthread_t analyzer_thid;
|
| | | bool running;
|
| | |
|
| | | bool faceCacheLocked;
|
| | |
| | | PLPLContext plplContext;
|
| | |
|
| | | CameraWrapper() :
|
| | | pipeLineDecoderDetector(nullptr), pipeLineAnalyzer(nullptr), pipeLineRender(nullptr), rtspConfig(), amcdConfig(), asvrConfig(), sftConfig(),
|
| | | pipeLineDecoderDetector(nullptr), pipeLineAnalyzer(nullptr), pipeLineRender(nullptr), queueFrame(nullptr), rtspConfig(), amcdConfig(), asvrConfig(), sftConfig(),
|
| | | cameraIdx(0), javaVM(nullptr), javaEnv(nullptr), faceCallbackClazz(0), faceCallbackFunc(0), windowRender(nullptr), windowDecode(nullptr),
|
| | | live_daemon_thid(0), running(false),
|
| | | decoder_thid(0), analyzer_thid(0), running(false),
|
| | | faceCacheLocked(false), faceCache(),
|
| | | plplContext()
|
| | | {
|
| | |
| | | void releaseFace();
|
| | |
|
| | | private:
|
| | | static void* live_daemon_thd(void* arg);
|
| | | static void* decoder_thd(void *arg);
|
| | | static void* analyzer_thd(void *arg);
|
| | | };
|
| | |
|
| | | #endif
|