pans
2017-08-18 72505b6ff2ee0342a6950af306da0942718ca0b4
VisitFace/RtspNativeCodec/app/src/main/cpp/FaceCacheForPLBG.cpp
@@ -152,14 +152,16 @@
   }
};
FaceCacheForPLBG::FaceCacheForPLBG() : _ctx(new FcPmBreackerContextPLBG)
FaceCacheForPLBG::FaceCacheForPLBG() : _ctx(new FcPmBreackerContextPLBG), resultBuffer(nullptr)
{
   resultBuffer = new uint8_t[FACECACHEFORPLBG_RESULT_BUFFSIZE];
}
FaceCacheForPLBG::~FaceCacheForPLBG()
{
   delete (FcPmBreackerContextPLBG*)_ctx;
   delete resultBuffer;
   resultBuffer = nullptr;
}
@@ -226,7 +228,6 @@
      return 0;
}
bool FaceCacheForPLBG::getFaceListPb(uint8_t* buffer, size_t& buffMaxSize)
{
   FcPmBreackerContextPLBG& ctx(*(FcPmBreackerContextPLBG*)_ctx);
@@ -276,7 +277,6 @@
   return buffMaxSize > 0;
}
bool FaceCacheForPLBG::getFaceListImage(std::vector<NativeImgIdx>& imgIdxes, uint8_t* buffImg, size_t& buffImgMaxSize)
{
   FcPmBreackerContextPLBG& ctx(*(FcPmBreackerContextPLBG*)_ctx);
@@ -306,6 +306,7 @@
      imgIdxes.push_back(imgidx);
      totalSize += ctx.lastOutputsRGBBufs[i].buffSize;
      LOG_ERROR << "!!!!!id ="<<imgidx.st_track_id <<"width="<< imgidx.width <<"height="<< imgidx.height<< LOG_ENDL;
   }
   memcpy(buffImg, ctx.frameRGB, totalSize);
@@ -313,4 +314,3 @@
   return  true;
}