From 1f5c80319ba6fe544266e36e398a474a85488897 Mon Sep 17 00:00:00 2001 From: Matthew Date: Sun, 8 Sep 2024 15:14:40 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=BC=96=E8=AF=91=E9=94=99?= =?UTF-8?q?=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/cpp/PhoneDevice.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/src/main/cpp/PhoneDevice.cpp b/app/src/main/cpp/PhoneDevice.cpp index 0639a82f..8874bb42 100644 --- a/app/src/main/cpp/PhoneDevice.cpp +++ b/app/src/main/cpp/PhoneDevice.cpp @@ -1618,12 +1618,13 @@ bool CPhoneDevice::OnImageReady(cv::Mat& mat) } // #ifdef OUTPUT_CAMERA_DBG_INFO + + NdkCamera::CAPTURE_RESULT captureResult = mCamera->getCaptureResult(); + if (mPhotoInfo.outputDbgInfo != 0) { cv::Scalar scalarRed(0, 0, 255); // red - NdkCamera::CAPTURE_RESULT captureResult = mCamera->getCaptureResult(); - char extimeunit[4] = { 0 }; unsigned int extime = (captureResult.exposureTime >= 1000000) ? ((unsigned int)(captureResult.exposureTime / 1000000)) : ((unsigned int)(captureResult.exposureTime / 1000)); strcpy(extimeunit, (captureResult.exposureTime >= 1000000) ? "ms" : "μs");