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