From 48d61aafa2551ae2ee0a9484b590d64e10baeae3 Mon Sep 17 00:00:00 2001
From: xuxiuxi <xuxiuxi@454eff88-639b-444f-9e54-f578c98de674>
Date: 星期五, 07 四月 2017 16:04:43 +0800
Subject: [PATCH]
---
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