xuxiuxi
2017-04-20 d2f697fa887e28b86d38332e2fbde930c54fb43f
VisitFace/RtspNativeCodec/app/src/main/cpp/FaceCache.cpp
@@ -338,6 +338,16 @@
            return false;
        }
        /*
        uint8_t* pbuf = buffImg + imgidx.offset;
        uint8_t* psrc = ctx.frameRGB + (ctx.width * faceRect.leftTop.y + faceRect.leftTop.x) * 2;
        for (int row = 0; row < faceRect.height(); row++)
        {
            memcpy(pbuf, psrc, imgidx.width * 2);
            pbuf += imgidx.width * 2;
            psrc += ctx.width * 2;
        }
         */
        uint8_t* pbuf = buffImg + imgidx.offset;
        memcpy(pbuf, roiMat.ptr(), imgidx.size);