From 0f01442b32d2222d27dce0f5a2fff100d7df7f1d Mon Sep 17 00:00:00 2001 From: Matthew Date: Mon, 1 Jul 2024 00:40:29 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E9=BB=98=E8=AE=A4=E7=9A=84OS?= =?UTF-8?q?D=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/cpp/MicroPhoto.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/app/src/main/cpp/MicroPhoto.cpp b/app/src/main/cpp/MicroPhoto.cpp index 1cd4af2a..82840a96 100644 --- a/app/src/main/cpp/MicroPhoto.cpp +++ b/app/src/main/cpp/MicroPhoto.cpp @@ -407,6 +407,15 @@ Java_com_xypower_mpapp_MicroPhotoService_takePhoto( photoInfo.cameraId = cameraId; std::vector osds; + osds.resize(4); + osds[1].alignment = IDevice::OSD_ALIGNMENT_TOP_RIGHT; + osds[2].alignment = IDevice::OSD_ALIGNMENT_BOTTOM_RIGHT; + osds[3].alignment = IDevice::OSD_ALIGNMENT_BOTTOM_LEFT; + + osds[0].text = "%%DATETIME%%"; +#ifdef OUTPUT_CAMERA_DBG_INFO + osds[1].text = "V: %%V%%"; +#endif const char* pathStr = env->GetStringUTFChars(path, 0);