From be8c4cdfe7f65c922cc396f8f1f33482807634a7 Mon Sep 17 00:00:00 2001 From: houxiao <houxiao@454eff88-639b-444f-9e54-f578c98de674> Date: 星期五, 07 四月 2017 11:21:59 +0800 Subject: [PATCH] add config --- VisitFace/RtspNativeCodec/app/src/main/cpp/FaceCache.h | 12 ++++++++---- 1 files changed, 8 insertions(+), 4 deletions(-) diff --git a/VisitFace/RtspNativeCodec/app/src/main/cpp/FaceCache.h b/VisitFace/RtspNativeCodec/app/src/main/cpp/FaceCache.h index ed2bb5c..8c2e077 100644 --- a/VisitFace/RtspNativeCodec/app/src/main/cpp/FaceCache.h +++ b/VisitFace/RtspNativeCodec/app/src/main/cpp/FaceCache.h @@ -6,19 +6,23 @@ class FaceCache { public: + +#ifdef USE_ST_SDK FaceCache(); ~FaceCache(); +#else + FaceCache() : _ctx(nullptr) {} + ~FaceCache() {} +#endif // returns count of face int cachePm(const PipeMaterial& pm); - bool getFaceListPb(uint8_t* buffer, size_t& buffSize); + bool getFaceListPb(uint8_t* buffer, size_t& buffMaxSize); - bool getFaceListImage(int* buffIdx, size_t& count, uint8_t* buffImg, size_t& buffImgSize); + bool getFaceListImage(int* buffIdx, size_t& count, uint8_t* buffImg, size_t& buffImgMaxSize); private: - bool extractFace(); - void* _ctx; }; -- Gitblit v1.8.0