From 63d598d4443f906b34bedaf49e870b7a2be1a5c8 Mon Sep 17 00:00:00 2001
From: houxiao <houxiao@454eff88-639b-444f-9e54-f578c98de674>
Date: 星期四, 06 四月 2017 12:14:30 +0800
Subject: [PATCH] bug fix for android device

---
 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