|
|
|
@ -1367,6 +1367,7 @@ void NdkCamera::onImageAvailable(AImageReader* reader)
|
|
|
|
|
mstatus = AImage_getTimestamp(image, &frameTs);
|
|
|
|
|
|
|
|
|
|
#ifdef OUTPUT_DBG_INFO
|
|
|
|
|
#if 0
|
|
|
|
|
if (mWidth == 1920)
|
|
|
|
|
{
|
|
|
|
|
std::string dt = FormatLocalDateTime("%d%02d%02d%02d%02d%02d", time(NULL));
|
|
|
|
@ -1374,6 +1375,7 @@ void NdkCamera::onImageAvailable(AImageReader* reader)
|
|
|
|
|
fileName += "_" + mCameraId + std::to_string(frameTs) + ".yuv";
|
|
|
|
|
saveYuvToFile(image, fileName.c_str());
|
|
|
|
|
}
|
|
|
|
|
#endif
|
|
|
|
|
#endif
|
|
|
|
|
AImage_delete(image);
|
|
|
|
|
|
|
|
|
|