From 3fface896b2b76d49726a47b86788c5a94ff4c60 Mon Sep 17 00:00:00 2001 From: BlueMatthew Date: Sat, 27 Jan 2024 17:50:10 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E6=97=8B=E8=BD=AC=E7=AE=97?= =?UTF-8?q?=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/cpp/camera2/ndkcamera.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/cpp/camera2/ndkcamera.cpp b/app/src/main/cpp/camera2/ndkcamera.cpp index cf66811d..b48d6046 100644 --- a/app/src/main/cpp/camera2/ndkcamera.cpp +++ b/app/src/main/cpp/camera2/ndkcamera.cpp @@ -751,7 +751,7 @@ void NdkCamera::on_image(const unsigned char* nv21, int nv21_width, int nv21_hei } else { - co = (camera_orientation + (m_params.orientation - 1) * 90 + 360) % 360; + co = (camera_orientation - (m_params.orientation - 1) * 90 + 360) % 360; } XYLOG(XYLOG_SEVERITY_DEBUG, "Orientation=%d Facing=%d", co, camera_facing);