From a0092014ee12abf06edb1788b189cc7c57336063 Mon Sep 17 00:00:00 2001
From: chenke <chenke@454eff88-639b-444f-9e54-f578c98de674>
Date: 星期三, 09 八月 2017 13:42:00 +0800
Subject: [PATCH] Reverse merged revision(s) 988-987 from VisitFace/RtspNativeCodec: JsonCpp和CapnpProtocol功能初步实现 ........

---
 VisitFace/RtspNativeCodec/app/src/main/cpp/FaceCacheForPLBG.cpp |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/VisitFace/RtspNativeCodec/app/src/main/cpp/FaceCacheForPLBG.cpp b/VisitFace/RtspNativeCodec/app/src/main/cpp/FaceCacheForPLBG.cpp
index b7502eb..7a82720 100644
--- a/VisitFace/RtspNativeCodec/app/src/main/cpp/FaceCacheForPLBG.cpp
+++ b/VisitFace/RtspNativeCodec/app/src/main/cpp/FaceCacheForPLBG.cpp
@@ -152,16 +152,14 @@
 	}
 };
 
-FaceCacheForPLBG::FaceCacheForPLBG() : _ctx(new FcPmBreackerContextPLBG), resultBuffer(nullptr)
+FaceCacheForPLBG::FaceCacheForPLBG() : _ctx(new FcPmBreackerContextPLBG)
 {
-	resultBuffer = new uint8_t[FACECACHEFORPLBG_RESULT_BUFFSIZE];
+
 }
 
 FaceCacheForPLBG::~FaceCacheForPLBG()
 {
 	delete (FcPmBreackerContextPLBG*)_ctx;
-	delete resultBuffer;
-	resultBuffer = nullptr;
 }
 
 
@@ -228,6 +226,7 @@
 		return 0;
 }
 
+
 bool FaceCacheForPLBG::getFaceListPb(uint8_t* buffer, size_t& buffMaxSize)
 {
 	FcPmBreackerContextPLBG& ctx(*(FcPmBreackerContextPLBG*)_ctx);
@@ -277,6 +276,7 @@
 	return buffMaxSize > 0;
 }
 
+
 bool FaceCacheForPLBG::getFaceListImage(std::vector<NativeImgIdx>& imgIdxes, uint8_t* buffImg, size_t& buffImgMaxSize)
 {
 	FcPmBreackerContextPLBG& ctx(*(FcPmBreackerContextPLBG*)_ctx);
@@ -313,3 +313,4 @@
 
 	return  true;
 }
+

--
Gitblit v1.8.0