houxiao
2017-04-18 fa4bbbf0b448dad155a05f0d3cc27fb118ba6053
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);